summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorBen Zhang <benzhangniu@gmail.com>2019-03-02 21:41:24 -0800
committerBen Zhang <benzhangniu@gmail.com>2019-03-02 21:50:48 -0800
commita08546158dde0b9c4397f9ebb896e9ff695c18b8 (patch)
tree6e45e29e88950eecca26b93ecbe53f6e0e791373 /modules/system
parentfeaf3718dbe2ab2558f56b900e0b808e60a60814 (diff)
add trackpad configs: ActuationStrength, FirstClickThreshold, SecondClickThreshold
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/trackpad.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/system/defaults/trackpad.nix b/modules/system/defaults/trackpad.nix
index 1fb1c90..a86a347 100644
--- a/modules/system/defaults/trackpad.nix
+++ b/modules/system/defaults/trackpad.nix
@@ -29,5 +29,31 @@ with lib;
'';
};
+ system.defaults.trackpad.ActuationStrength = mkOption {
+ type = types.nullOr (types.enum [ 0 1 ]);
+ default = null;
+ description = ''
+ 0 to enable Silent Clicking, 1 to disable. The default is 1.
+ '';
+ };
+
+ system.defaults.trackpad.FirstClickThreshold = mkOption {
+ type = types.nullOr (types.enum [ 0 1 2 ]);
+ default = null;
+ description = ''
+ For normal click: 0 for light clicking, 1 for medium, 2 for firm.
+ The default is 1.
+ '';
+ };
+
+ system.defaults.trackpad.SecondClickThreshold = mkOption {
+ type = types.nullOr (types.enum [ 0 1 2 ]);
+ default = null;
+ description = ''
+ For force touch: 0 for light clicking, 1 for medium, 2 for firm.
+ The default is 1.
+ '';
+ };
+
};
}