lol

synaptics: fix to allow for more scrolling choices

laMudri 0f63a624 643d0550

+23 -4
+23 -4
nixos/modules/services/x11/hardware/synaptics.nix
··· 63 63 twoFingerScroll = mkOption { 64 64 type = types.bool; 65 65 default = false; 66 - description = "Whether to enable two-finger drag-scrolling."; 66 + description = "Whether to enable two-finger drag-scrolling. Overridden by horizTwoFingerScroll and vertTwoFingerScroll."; 67 + }; 68 + 69 + horizTwoFingerScroll = mkOption { 70 + type = types.bool; 71 + default = cfg.twoFingerScroll; 72 + description = "Whether to enable horizontal two-finger drag-scrolling."; 73 + }; 74 + 75 + vertTwoFingerScroll = mkOption { 76 + type = types.bool; 77 + default = cfg.twoFingerScroll; 78 + description = "Whether to enable vertical two-finger drag-scrolling."; 79 + }; 80 + 81 + horizEdgeScroll = mkOption { 82 + type = types.bool; 83 + default = ! cfg.horizTwoFingerScroll; 84 + description = "Whether to enable horizontal edge drag-scrolling."; 67 85 }; 68 86 69 87 vertEdgeScroll = mkOption { 70 88 type = types.bool; 71 - default = ! cfg.twoFingerScroll; 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 - Option "VertTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}" 151 - Option "HorizTwoFingerScroll" "${if cfg.twoFingerScroll then "1" else "0"}" 168 + Option "VertTwoFingerScroll" "${if cfg.vertTwoFingerScroll then "1" else "0"}" 169 + Option "HorizTwoFingerScroll" "${if cfg.horizTwoFingerScroll then "1" else "0"}" 152 170 Option "VertEdgeScroll" "${if cfg.vertEdgeScroll then "1" else "0"}" 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}