summaryrefslogtreecommitdiff
path: root/.local/bin/trackpoint-setup.sh
blob: e06c529f728a146131d72e90599697e954eb5edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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