diff options
| author | Mike Vink <ivi@vinkies.net> | 2026-01-25 21:40:12 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2026-01-25 21:40:12 +0100 |
| commit | 311bd67f6e667126841a21e030a6960e367d781c (patch) | |
| tree | 230e532e84394aac1495ad24130d5a3367d0865a /.local | |
| parent | f25538f487e88c88324dd29d5cc22b695f8961fc (diff) | |
remaps
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/remaps | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.local/bin/remaps b/.local/bin/remaps index ca5f0c5..f9dcf71 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -6,6 +6,12 @@ xset r rate 300 50 # Map the caps lock key to super, and map the menu key to right super. setxkbmap -option ctrl:swapcaps,altwin:menu_win # When caps lock is pressed only once, treat it as escape. -killall xcape 2>/dev/null ; xcape -e 'Control_L=Escape' +xmodmap -e 'keycode 36 = Return' +xmodmap -e 'remove control = Control_R' +xmodmap -e 'keycode 36 = Control_R' +xmodmap -e 'add control = Control_R' +xmodmap -e 'keycode 105 = Return' +killall xcape 2>/dev/null ; xcape -e 'Control_L=Escape;Control_R=Return' + # 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 |
