summaryrefslogtreecommitdiffstats
path: root/bin/setup-inputs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-12-12 09:43:26 -0500
committerJesse Luehrs <doy@tozt.net>2017-12-12 09:46:43 -0500
commit5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d (patch)
treea6f19fa1f14db9eaf49d9a2e68f522162aaa1860 /bin/setup-inputs
parentc3b5bbfb9dcfed2dfe708b8aad85b00c13e2a100 (diff)
downloadconf-5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d.tar.gz
conf-5e1da4d5eecb26a2673f7b7e1b6a80ffa518a52d.zip
more keyboard reconfiguring and refactoring
including setting the function keys to work even without hardware level remapping
Diffstat (limited to 'bin/setup-inputs')
-rwxr-xr-xbin/setup-inputs22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/setup-inputs b/bin/setup-inputs
new file mode 100755
index 0000000..aab71a6
--- /dev/null
+++ b/bin/setup-inputs
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# key bindings
+setxkbmap -option ctrl:nocaps
+setxkbmap -option compose:caps
+xmodmap $HOME/.Xmodmap
+$HOME/.bin/numkeys on
+
+# disable trackpoint
+xinput set-prop "TPPS/2 IBM TrackPoint" "Device Enabled" 0
+
+# tap to click on touchpad
+synclient TapButton1=1
+synclient TapButton2=2
+synclient TapButton3=3
+
+# restart services that depend on keyboard reconfigurations
+if pgrep readproctitle > /dev/null; then
+ svre xcape
+ svre kuake
+ svre xbindkeys
+fi