tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
synaptics: fix to allow for more scrolling choices
laMudri
10 years ago
0f63a624
643d0550
+23
-4
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
x11
hardware
synaptics.nix
+23
-4
nixos/modules/services/x11/hardware/synaptics.nix
···
63
63
twoFingerScroll = mkOption {
64
64
type = types.bool;
65
65
default = false;
66
66
-
description = "Whether to enable two-finger drag-scrolling.";
66
66
+
description = "Whether to enable two-finger drag-scrolling. Overridden by horizTwoFingerScroll and vertTwoFingerScroll.";
67
67
+
};
68
68
+
69
69
+
horizTwoFingerScroll = mkOption {
70
70
+
type = types.bool;
71
71
+
default = cfg.twoFingerScroll;
72
72
+
description = "Whether to enable horizontal two-finger drag-scrolling.";
73
73
+
};
74
74
+
75
75
+
vertTwoFingerScroll = mkOption {
76
76
+
type = types.bool;
77
77
+
default = cfg.twoFingerScroll;
78
78
+
description = "Whether to enable vertical two-finger drag-scrolling.";
79
79
+
};
80
80
+
81
81
+
horizEdgeScroll = mkOption {
82
82
+
type = types.bool;
83
83
+
default = ! cfg.horizTwoFingerScroll;
84
84
+
description = "Whether to enable horizontal edge drag-scrolling.";
67
85
};
68
86
69
87
vertEdgeScroll = mkOption {
70
88
type = types.bool;
71
71
-
default = ! cfg.twoFingerScroll;
89
89
+
default = ! cfg.vertTwoFingerScroll;
72
90
description = "Whether to enable vertical edge drag-scrolling.";
73
91
};
74
92
···
147
165
Option "ClickFinger1" "${builtins.elemAt cfg.buttonsMap 0}"
148
166
Option "ClickFinger2" "${builtins.elemAt cfg.buttonsMap 1}"
149
167
Option "ClickFinger3" "${builtins.elemAt cfg.buttonsMap 2}"
150
150
-
Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
151
151
-
Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}"
168
168
+
Option "VertTwoFingerScroll" "${if cfg.vertTwoFingerScroll then "1" else "0"}"
169
169
+
Option "HorizTwoFingerScroll" "${if cfg.horizTwoFingerScroll then "1" else "0"}"
152
170
Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}"
171
171
+
Option "HorizEdgeScroll" "${if cfg.horizEdgeScroll then "1" else "0"}"
153
172
${if cfg.palmDetect then ''Option "PalmDetect" "1"'' else ""}
154
173
${if cfg.horizontalScroll then "" else ''Option "HorizScrollDelta" "0"''}
155
174
${cfg.additionalOptions}