summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xremaps8
1 files changed, 7 insertions, 1 deletions
diff --git a/remaps b/remaps
index 282f1b8..0363051 100755
--- a/remaps
+++ b/remaps
@@ -1,7 +1,13 @@
#!/bin/sh
# Increase key speed
-xset r rate 200 50
+xset r rate 150 50
# Switch caps and esc
setxkbmap us -option caps:swapescape
+
+# When caps lock is pressed only once, treat it as escape
+killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
+
+# Turn off caps lock if on since there is no longer a key for it
+xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock