summaryrefslogtreecommitdiff
path: root/ar/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-19 08:35:57 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-19 08:35:57 +0900
commit081c0c0244ea221952bd6c2768371e9b099b8a16 (patch)
tree9aa045d8b320014ce01d06c0993b30d18384b26e /ar/.local
parent711af80afc365a554233c6487ea146297e460b7e (diff)
modified bin/remaps
Diffstat (limited to 'ar/.local')
-rwxr-xr-xar/.local/bin/remaps4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/remaps b/ar/.local/bin/remaps
index 831d52b..6eccc77 100755
--- a/ar/.local/bin/remaps
+++ b/ar/.local/bin/remaps
@@ -4,6 +4,8 @@
xset s off -dpms
# Decrease key repeat delay to 200ms and increase key repeat rate to 50 per second.
xset r rate 200 50
+# Turn off caps lock if on since there is no longer a key for it.
+xset -q | grep -qE "Caps Lock:[[:space:]]+on[[:space:]]" && xdotool key Caps_Lock
# Map the caps lock key to control, and map the menu key to right super.
xinput list | grep 'id=' | while read -r line; do
keyboard=$(echo "$line" | grep -i 'keyboard.*id.*keyboard' | sed 's/.*id=\([0-9]\+\).*/\1/')
@@ -72,5 +74,3 @@ done
# When left control, caps lock, or Super_L is pressed only once, treat it as escape.
killall xcape 2>/dev/null
xcape -e 'Caps_Lock=Escape;Control_L=Escape' #;Super_L=Escape'
-# Turn off caps lock if on since there is no longer a key for it.
-xset -q | grep -qE "Caps Lock:[[:space:]]+on[[:space:]]" && xdotool key Caps_Lock