mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
add trackpad options for system.defaults
This commit is contained in:
parent
8b3cf21d87
commit
8a654cf2d9
3 changed files with 29 additions and 0 deletions
|
@ -39,6 +39,8 @@
|
|||
system.defaults.finder.QuitMenuItem = true;
|
||||
system.defaults.finder.FXEnableExtensionChangeWarning = false;
|
||||
|
||||
system.defaults.trackpad.Clicking = true;
|
||||
|
||||
programs.tmux.enable = true;
|
||||
programs.tmux.loginShell = "${config.programs.zsh.shell} -l";
|
||||
programs.tmux.enableSensible = true;
|
||||
|
|
|
@ -93,6 +93,14 @@ with lib;
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Whether to enable trackpad secondary click. The default is true.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
|
@ -109,5 +117,13 @@ with lib;
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = mkOption {
|
||||
type = types.nullOr (types.enum [ 1 ]);
|
||||
default = null;
|
||||
description = ''
|
||||
Configures the trackpad corner click behavior. Mode 1 enables right click.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,6 +8,17 @@ with lib;
|
|||
system.defaults.trackpad.Clicking = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Whether to enable trackpad tap to click. The default is false.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.trackpad.TrackpadRightClick = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Whether to enable trackpad right click. The default is false.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue