Skip to content

Instantly share code, notes, and snippets.

@raven-rock
Created January 27, 2020 02:04
Show Gist options
  • Save raven-rock/7115983a701c5b0f1ccf385a479be554 to your computer and use it in GitHub Desktop.
Save raven-rock/7115983a701c5b0f1ccf385a479be554 to your computer and use it in GitHub Desktop.
.Xmodmap - space cadet setup for Linux - map caps lock to escape; alt to control; super to alt; control to super
!file ~/.Xmodmap
clear control
clear mod1
clear mod4
keycode 37 = Super_L
! left Ctrl becomes Super
keycode 64 = Control_L
! left Alt becomes Control
keycode 133 = Alt_L Meta_L
! left Win becomes Alt
keycode 108 = Control_R
! right Alt becomes Control
keycode 134 = Alt_R Meta_R
! right Win becomes Alt
keycode 105 = Super_R
! right Ctrl becomes Super
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
add mod4 = Super_L Super_R
! keycode 9 = Caps_Lock NoSymbol Caps_Lock
! Caps Lock becomes Escape
! keycode 66 = Escape NoSymbol Escape
! Escape becomes Caps Lock
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment