aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2018-03-28 12:13:51 -0400
committerRyan Kavanagh <rak@debian.org>2018-03-28 12:13:51 -0400
commita53306200f17def5227e6339bd1f90343fa972b8 (patch)
tree27a1e1f903c7f8cc6bb56283f13dfc25b6569353
parentSet email width to 72 in neomutt too (diff)
Customize trackball
Diffstat (limited to '')
-rwxr-xr-x.xinitrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc
index eeefa68..d7cdb8f 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -30,4 +30,10 @@ synclient TapButton3=2 || true
synclient CoastingSpeed=5
synclient CoastingFriction=30
+trackball=$(xinput | grep "Kensington Expert Wireless TB" | sed -e 's/.*id=//g;s/ .*//g')
+if [ "x${trackball}" != "x" ]; then
+ xinput set-button-map "${trackball}" 1 2 8 4 5 6 7 3 9 10 11 12 13 14 15 16
+ xinput set-prop "${trackball}" "libinput Accel Speed" 0.25
+fi
+
exec /usr/bin/xmonad