summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMichael Hoang <Enzime@users.noreply.github.com>2024-05-30 00:41:28 +1000
committerGitHub <noreply@github.com>2024-05-30 00:41:28 +1000
commitc0d5b8c54d6828516c97f6be9f2d00c63a363df4 (patch)
tree9772cee623295d23aabd5eb4b0356b184e70d3d1 /modules
parent0bea8222f6e83247dd13b055d83e64bce02ee532 (diff)
parent9639c5509b148381c5d832204a1d3704b7d7ec60 (diff)
Merge pull request #958 from kamushadenes/master
Add support for trackpad force click
Diffstat (limited to 'modules')
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix8
-rw-r--r--modules/system/defaults/trackpad.nix9
2 files changed, 17 insertions, 0 deletions
diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix
index cd008e0..9eb31d5 100644
--- a/modules/system/defaults/NSGlobalDomain.nix
+++ b/modules/system/defaults/NSGlobalDomain.nix
@@ -342,6 +342,14 @@ in {
'';
};
+ system.defaults.NSGlobalDomain."com.apple.trackpad.forceClick" = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to enable trackpad force click.
+ '';
+ };
+
system.defaults.NSGlobalDomain."com.apple.springing.enabled" = mkOption {
type = types.nullOr types.bool;
default = null;
diff --git a/modules/system/defaults/trackpad.nix b/modules/system/defaults/trackpad.nix
index edb6375..354cfc6 100644
--- a/modules/system/defaults/trackpad.nix
+++ b/modules/system/defaults/trackpad.nix
@@ -63,5 +63,14 @@ with lib;
'';
};
+ system.defaults.trackpad.TrackpadThreeFingerTapGesture = mkOption {
+ type = types.nullOr (types.enum [ 0 2 ]);
+ default = null;
+ description = ''
+ 0 to disable three finger tap, 2 to trigger Look up & data detectors.
+ The default is 2.
+ '';
+ };
+
};
}