From e210a281b654bbcf1180c2087dd4feb1c48733dd Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 27 Sep 2015 01:43:47 +0200 Subject: [PATCH] xinitrc: enable trackpoint and disable touchpad on Thinkpads --- xinitrc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.45.2