mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Allow configuring external keyboard to use standard F-keys
This commit is contained in:
parent
2fce9974b6
commit
c3d9dceede
2 changed files with 10 additions and 0 deletions
|
@ -208,6 +208,14 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain."com.apple.keyboard.fnState" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Use F1, F2, etc. keys as standard function keys.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = mkOption {
|
||||
type = types.nullOr (types.enum [ 1 ]);
|
||||
default = null;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
system.defaults.NSGlobalDomain.KeyRepeat = 1;
|
||||
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = true;
|
||||
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint2 = true;
|
||||
system.defaults.NSGlobalDomain."com.apple.keyboard.fnState" = true;
|
||||
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
|
||||
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = true;
|
||||
system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = 1;
|
||||
|
@ -65,6 +66,7 @@
|
|||
grep "defaults write -g 'KeyRepeat' -int 1" ${config.out}/activate-user
|
||||
grep "defaults write -g 'PMPrintingExpandedStateForPrint' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'PMPrintingExpandedStateForPrint2' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'com.apple.keyboard.fnState' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'com.apple.mouse.tapBehavior' -int 1" ${config.out}/activate-user
|
||||
grep "defaults write -g 'com.apple.trackpad.enableSecondaryClick' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'com.apple.trackpad.trackpadCornerClickBehavior' -int 1" ${config.out}/activate-user
|
||||
|
|
Loading…
Add table
Reference in a new issue