2016-12-14 13:05:23 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
|
|
|
system.defaults.trackpad.Clicking = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2016-12-14 16:38:59 +01:00
|
|
|
Whether to enable trackpad tap to click. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-09-05 11:06:56 -04:00
|
|
|
system.defaults.trackpad.Dragging = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2020-09-05 11:06:56 -04:00
|
|
|
Whether to enable tap-to-drag. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-12-14 16:38:59 +01:00
|
|
|
system.defaults.trackpad.TrackpadRightClick = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2016-12-14 16:38:59 +01:00
|
|
|
Whether to enable trackpad right click. The default is false.
|
|
|
|
'';
|
2016-12-14 13:05:23 +01:00
|
|
|
};
|
|
|
|
|
2017-10-03 12:14:29 -07:00
|
|
|
system.defaults.trackpad.TrackpadThreeFingerDrag = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2017-10-03 12:14:29 -07:00
|
|
|
Whether to enable three finger drag. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2019-03-02 21:41:24 -08:00
|
|
|
system.defaults.trackpad.ActuationStrength = mkOption {
|
|
|
|
type = types.nullOr (types.enum [ 0 1 ]);
|
|
|
|
default = null;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2019-03-02 21:41:24 -08:00
|
|
|
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;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2019-03-02 21:41:24 -08:00
|
|
|
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;
|
2023-06-22 12:21:32 +01:00
|
|
|
description = lib.mdDoc ''
|
2019-03-02 21:41:24 -08:00
|
|
|
For force touch: 0 for light clicking, 1 for medium, 2 for firm.
|
|
|
|
The default is 1.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-12-14 13:05:23 +01:00
|
|
|
};
|
|
|
|
}
|