dotfiles

config files and scripts
git clone git://git.hanetzok.net/dotfiles
Log | Files | Refs

remaps.sh (533B)


      1 #!/bin/sh
      2 
      3 # This script is called on startup to remap keys.
      4 # Decrease key repeat delay to 300ms and increase key repeat rate to 50 per second.
      5 xset r rate 300 50
      6 # Map the caps lock key to super, and map the menu key to right super.
      7 setxkbmap -option caps:super,altwin:menu_win
      8 # When caps lock is pressed only once, treat it as escape.
      9 killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
     10 # Turn off caps lock if on since there is no longer a key for it.
     11 xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock
     12 setxkbmap eu