summaryrefslogtreecommitdiff
path: root/.local/bin/trackpoint-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/trackpoint-setup.sh')
-rwxr-xr-x.local/bin/trackpoint-setup.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/.local/bin/trackpoint-setup.sh b/.local/bin/trackpoint-setup.sh
new file mode 100755
index 0000000..e06c529
--- /dev/null
+++ b/.local/bin/trackpoint-setup.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+TP="TPPS/2 IBM TrackPoint"
+
+xinput set-prop "$TP" "Evdev Wheel Emulation" 1
+xinput set-prop "$TP" "Evdev Wheel Emulation Button" 2
+xinput set-prop "$TP" "Evdev Wheel Emulation Timeout" 200
+xinput set-prop "$TP" "Evdev Wheel Emulation Axes" 6 7 4 5
+
+xinput set-prop "$TP" "Device Accel Profile" 2
+xinput set-prop "$TP" "Device Accel Constant Deceleration" 0.8
+xinput set-prop "$TP" "Device Accel Adaptive Deceleration" 2.0
+
+xinput set-ptr-feedback "$TP" 0 20 15 # acceleration factor = 20/10
+