summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.local/bin/keyboard-us21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/.local/bin/keyboard-us b/bin/.local/bin/keyboard-us
new file mode 100755
index 0000000..8f93f66
--- /dev/null
+++ b/bin/.local/bin/keyboard-us
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+# Key repeat rate
+xset r rate 400 50
+
+# Xcape settings
+killall -9 xcape
+
+# Set keyboard to US
+setxkbmap us
+
+# Make Caps_Lock (Control_L, Escape)
+xmodmap -e "clear Lock"
+xmodmap -e "keysym Caps_Lock = Control_L Control_L"
+xmodmap -e "add Control = Control_L"
+
+# Make space (Super_L, space)
+xmodmap -e "keysym space = Super_L"
+xmodmap -e "add mod4 = Super_L"
+xmodmap -e "keycode any = space"
+xcape -e 'Super_L=space'