Skip to content

Instantly share code, notes, and snippets.

@kl
Created June 25, 2017 07:55
Show Gist options
  • Save kl/e953f1a0f47d793be8663a0827d9ce49 to your computer and use it in GitHub Desktop.
Save kl/e953f1a0f47d793be8663a0827d9ce49 to your computer and use it in GitHub Desktop.
Xmodmap
!
! Make Caps_Lock a Control_L
!
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L
!
! Swap Mod1 and Mod5
!
remove Mod1 = Alt_L Meta_L Alt_L Meta_L
remove Mod5 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keysym Alt_L Meta_L Alt_L Meta_L = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keysym ISO_Level3_Shift NoSymbol ISO_Level3_Shift = Alt_L Meta_L Alt_L Meta_L
add Mod1 = Alt_L Meta_L
add Mod5 = ISO_Level3_Shift
!
! Make Control_L a Mod1
!
remove Control = Control_L
keysym Control_L = Alt_L Meta_L Alt_L Meta_L
add Mod1 = Alt_L Meta_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment