summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 19:33:26 +0200
committerAlan Pearce2017-09-09 19:33:26 +0200
commit9c28f332eb6719b5625f674ff0844ef614d11649 (patch)
treebf7cefb43edc08e400d128405eb6c6decd18a7a1 /modules
parentd901c0e42094c806655b1ec2a250e657a54f9dfc (diff)
downloadnixfiles-9c28f332eb6719b5625f674ff0844ef614d11649.tar.lz
nixfiles-9c28f332eb6719b5625f674ff0844ef614d11649.tar.zst
nixfiles-9c28f332eb6719b5625f674ff0844ef614d11649.zip
Import synaptics configuration
Diffstat (limited to 'modules')
-rw-r--r--modules/synaptics.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/synaptics.nix b/modules/synaptics.nix
new file mode 100644
index 00000000..0e9db17a
--- /dev/null
+++ b/modules/synaptics.nix
@@ -0,0 +1,24 @@
+{ config, pkgs, ... }:
+
+{ services.xserver.synaptics = {
+    enable = true;
+
+    accelFactor = "0.001";
+
+    minSpeed = "0.4";
+    maxSpeed = "2.0";
+
+    palmDetect = true;
+    palmMinWidth = 5;
+    palmMinZ = 20;
+
+    twoFingerScroll = true;
+    vertTwoFingerScroll = true;
+    horizTwoFingerScroll = true;
+    additionalOptions = ''
+      Option "RBCornerButton" "3"
+      Option "VertScrollDelta" "-111"
+      Option "HorizScrollDelta" "-111"
+    '';
+  };
+}