Skip to content

Instantly share code, notes, and snippets.

@behrends
Created November 12, 2010 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save behrends/673925 to your computer and use it in GitHub Desktop.
Save behrends/673925 to your computer and use it in GitHub Desktop.
Linux: map capslock to escape
global setting - edit ~/.Xmodmap and put the following in it:
!! No Caps Lock
clear lock
!! Make Caps_lock an escape key.
keycode 0x42 = Escape
without global setting:
enable during current session:
xmodmap -e "clear lock"
xmodmap -e "keycode 0x42 = Escape"
disable during current session:
xmodmap -e "keycode 0x42 = Caps_Lock"
xmodmap -e "add lock = Caps_Lock"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment