1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

add trackpad configs: ActuationStrength, FirstClickThreshold, SecondClickThreshold

This commit is contained in:
Ben Zhang 2019-03-02 21:41:24 -08:00
parent feaf3718db
commit a08546158d
No known key found for this signature in database
GPG key ID: AF62883B66024554

View file

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