From: Simon Ruderich Date: Sat, 26 Sep 2015 23:43:47 +0000 (+0200) Subject: xinitrc: enable trackpoint and disable touchpad on Thinkpads X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e210a281b654bbcf1180c2087dd4feb1c48733dd;p=config%2Fdotfiles.git xinitrc: enable trackpoint and disable touchpad on Thinkpads --- diff --git a/xinitrc b/xinitrc index 6556c9f..480fbc6 100755 --- a/xinitrc +++ b/xinitrc @@ -96,6 +96,15 @@ fi # necessary because of my German keyboard which I use with an English layout. xmodmap -e 'keycode 94 = grave asciitilde' +# Enable scrolling with trackpoint and middle mouse on Thinkpads, also disable +# touchpad. Thanks to DerRoteBaron. +if xinput 2>/dev/null | grep 'TPPS/2 IBM TrackPoint' >/dev/null; then + xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1 + xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2 + xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5 + xinput --disable "SynPS/2 Synaptics TouchPad" +fi + # Disable annoying audio bell. Thanks to Sebastian Rachuj. xset b off