summaryrefslogtreecommitdiff
path: root/.local/bin/trackpoint-setup.sh
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-01-06 03:41:49 +0000
committerEvgeny Sorokin <me@ch1p.io>2024-01-06 03:41:49 +0000
commit6e5d672ea04fb8c89ce9e91cf4c9a53fbb8c2f81 (patch)
treed9f9200cf572385cf25f41442231675d5eeabcb8 /.local/bin/trackpoint-setup.sh
add somethingHEADmaster
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
+