blob: ff5e2bb3c24e62c534bd7c58b86ff43d94b8e8b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ config, lib, ... }:
with lib;
{
options = {
system.defaults.trackpad.Clicking = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to enable trackpad tap to click. The default is false.
'';
};
system.defaults.trackpad.Dragging = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to enable tap-to-drag. The default is false.
'';
};
system.defaults.trackpad.TrackpadRightClick = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to enable trackpad right click. The default is false.
'';
};
system.defaults.trackpad.TrackpadThreeFingerDrag = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to enable three finger drag. The default is false.
'';
};
system.defaults.trackpad.ActuationStrength = mkOption {
type = types.nullOr (types.enum [ 0 1 ]);
default = null;
description = lib.mdDoc ''
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 = lib.mdDoc ''
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 = lib.mdDoc ''
For force touch: 0 for light clicking, 1 for medium, 2 for firm.
The default is 1.
'';
};
};
}
|