diff options
Diffstat (limited to '.local/bin/remaps')
| -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 |
