summaryrefslogtreecommitdiffstats
path: root/bin/hush/setup-inputs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 03:13:31 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 03:13:31 -0400
commit243e280b5fd9527891a58d6578f2e659302908c7 (patch)
tree1443d96e6824c8e04355c2f1fb2c562a9afe2132 /bin/hush/setup-inputs
parentdb8dd3e6140e66db46f309bff9054ba137eb797a (diff)
downloadconf-243e280b5fd9527891a58d6578f2e659302908c7.tar.gz
conf-243e280b5fd9527891a58d6578f2e659302908c7.zip
just use hostnames for this stuff
i don't really want another level of indirection
Diffstat (limited to 'bin/hush/setup-inputs')
-rwxr-xr-xbin/hush/setup-inputs18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/hush/setup-inputs b/bin/hush/setup-inputs
new file mode 100755
index 0000000..6aaa19f
--- /dev/null
+++ b/bin/hush/setup-inputs
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# key bindings
+setxkbmap -option ctrl:nocaps
+setxkbmap -option compose:caps
+xmodmap $HOME/.Xmodmap
+"$(dirname "$0")"/numkeys on
+
+# trackpad settings
+xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.4
+xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
+
+# restart services that depend on keyboard reconfigurations
+if pgrep readproctitle > /dev/null; then
+ svre xcape
+ svre kuake
+ svre xbindkeys
+fi