From b67c93c59ced4e504f88166d623dbce753770973 Mon Sep 17 00:00:00 2001 From: Taeyeon Mori Date: Tue, 22 Sep 2015 16:35:08 +0200 Subject: [PATCH] Add xinput config for TrackPoint --- dotfiles/xinputrc | 10 ++++++++++ dotfiles/xprofile | 2 ++ 2 files changed, 12 insertions(+) create mode 100755 dotfiles/xinputrc diff --git a/dotfiles/xinputrc b/dotfiles/xinputrc new file mode 100755 index 0000000..324aa18 --- /dev/null +++ b/dotfiles/xinputrc @@ -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 + diff --git a/dotfiles/xprofile b/dotfiles/xprofile index 83e8bb1..902dc63 100644 --- a/dotfiles/xprofile +++ b/dotfiles/xprofile @@ -4,3 +4,5 @@ export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx +$HOME/.xinputrc +