1
0
Fork 0
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:
Daiderd Jordan 2016-12-14 16:38:59 +01:00
parent 8b3cf21d87
commit 8a654cf2d9
No known key found for this signature in database
GPG key ID: D02435D05B810C96
3 changed files with 29 additions and 0 deletions

View file

@ -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;

View file

@ -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.
'';
};
};
}

View file

@ -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.
'';
};
};