diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-20 09:34:10 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-20 09:34:10 +0900 |
| commit | ecce2f065efd0fe6de6ad31a8eb75a4eabaa81e6 (patch) | |
| tree | 34634661c5cb9b164b25a572f39ee34eea1bf557 /ar/.local | |
| parent | 50795e9a83d4229963268261caa5c212320f5ea8 (diff) | |
modified bin/remaps
Diffstat (limited to 'ar/.local')
| -rwxr-xr-x | ar/.local/bin/remaps | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/remaps b/ar/.local/bin/remaps index 6eccc77..fddb191 100755 --- a/ar/.local/bin/remaps +++ b/ar/.local/bin/remaps @@ -4,8 +4,6 @@ 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/') @@ -71,6 +69,8 @@ xinput list | grep 'id=' | while read -r line; do esac } done +# Turn off caps lock if on since there is no longer a key for it. +xset -q | grep -qE "Caps Lock:[[:space:]]+on" && xdotool key Caps_Lock # 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' |
