aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/events-usb
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/events-usb')
-rwxr-xr-x.local/bin/events-usb6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/events-usb b/.local/bin/events-usb
new file mode 100755
index 0000000..32d5823
--- /dev/null
+++ b/.local/bin/events-usb
@@ -0,0 +1,6 @@
+#!/bin/sh -eux
+
+xmodmap "$HOME/.config/X11/Xmodmap"
+xset r rate 200 60
+[ "$(xset -q | awk '/Caps Lock/ { print $4 }')" = "on" ] \
+ && xdotool key Caps_Lock