Created
June 2, 2012 22:00
-
-
Save dancrew32/2860125 to your computer and use it in GitHub Desktop.
Make trackpoint scrolling work in ubuntu 11.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id | |
do | |
case `xinput list-props $id` in | |
*"Middle Button Emulation"*) | |
xinput set-int-prop $id "Evdev Wheel Emulation" 8 1 | |
xinput set-int-prop $id "Evdev Wheel Emulation Button" 8 2 | |
xinput set-int-prop $id "Evdev Wheel Emulation Timeout" 8 200 | |
xinput set-int-prop $id "Evdev Wheel Emulation Axes" 8 6 7 4 5 | |
xinput set-int-prop $id "Evdev Middle Button Emulation" 8 0 | |
;; | |
esac | |
done | |
# disable middle button | |
xmodmap -e "pointer = 1 9 3 4 5 6 7 8 2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment