remaps (431B) - raw


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