X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=480fbc65943c0b04bb7172edbea25030f4aef35b;hb=e210a281b654bbcf1180c2087dd4feb1c48733dd;hp=6556c9f6e570bf170b4d3475cd9f6328868bb854;hpb=f0f67263cf5c0dbfd3fc14f230e97f7208376cf6;p=config%2Fdotfiles.git 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