From 1cc4e61bc4d7c5ede8b6531c642e7c7b00a28ca1 Mon Sep 17 00:00:00 2001
From: makefu <makefu@tsp>
Date: Sun, 9 Aug 2015 13:17:37 +0000
Subject: [PATCH] makefu: x200 - add middle mouse scroll

---
 2configs/tp-x200.nix | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/2configs/tp-x200.nix b/2configs/tp-x200.nix
index 64d3f85..25a2537 100644
--- a/2configs/tp-x200.nix
+++ b/2configs/tp-x200.nix
@@ -20,4 +20,9 @@ with lib;
   hardware.trackpoint.enable = true;
   hardware.trackpoint.sensitivity = 255;
   hardware.trackpoint.speed = 255;
+  services.xserver.displayManager.sessionCommands = ''
+    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
+    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
+    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
+  '';
 }