Add xinput config for TrackPoint

master
Taeyeon Mori 9 years ago
parent 504dd8ac24
commit b67c93c59c
  1. 10
      dotfiles/xinputrc
  2. 2
      dotfiles/xprofile

@ -0,0 +1,10 @@
#!/bin/sh
trackpoint_dev="TPPS/2 IBM TrackPoint"
if xinput --list --name-only | grep -q "$trackpoint_dev"; then
xinput set-prop "$trackpoint_dev" "Evdev Wheel Emulation" 1
xinput set-prop "$trackpoint_dev" "Evdev Wheel Emulation Button" 2
xinput set-prop "$trackpoint_dev" "Evdev Wheel Emulation Timeout" 200
fi

@ -4,3 +4,5 @@ export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx export XMODIFIERS=@im=fcitx
$HOME/.xinputrc

Loading…
Cancel
Save