X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=480fbc65943c0b04bb7172edbea25030f4aef35b;hb=095d69ad8c80f43f6d2db73c09eceef7576a271c;hp=6556c9f6e570bf170b4d3475cd9f6328868bb854;hpb=3bee859daf50035dbf6473008fd67553b19f7a5d;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