remaps (382B)
1 #!/usr/bin/env sh 2 # This script is called on startup to remap keys. 3 # Increase key speed via a rate change 4 xset r rate 300 50 5 # Map the caps lock key to super... 6 setxkbmap -option caps:super 7 # But when it is pressed only once, treat it as escape. 8 killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' 9 # Map the menu button to right super as well. 10 xmodmap -e 'keycode 135 = Super_R'