Skip to content

Instantly share code, notes, and snippets.

@zeekay
Created May 7, 2014 11:30
Show Gist options
  • Save zeekay/b7d93779b15da2295961 to your computer and use it in GitHub Desktop.
Save zeekay/b7d93779b15da2295961 to your computer and use it in GitHub Desktop.
Map capslock to escape (control when used as a modifier) with xmodmap.
clear Lock
clear mod1
clear mod4
keycode 66 = Escape
keycode 64 = Super_L
keycode 108 = Super_R
keycode 133 = Alt_L Meta_L
keycode 135 = Alt_R Meta_R
add mod4 = Super_L Super_R
add mod1 = Alt_L Alt_R Meta_L Meta_R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment