Skip to content

Instantly share code, notes, and snippets.

@zxteloiv
Created April 12, 2016 02:09
Show Gist options
  • Save zxteloiv/3db617fa116d0dab2903ce79c2e00c0f to your computer and use it in GitHub Desktop.
Save zxteloiv/3db617fa116d0dab2903ce79c2e00c0f to your computer and use it in GitHub Desktop.
swap caps lock and ctrl
keymaps 0-2,4-5,8,12
keycode 58 = Control #This makes Caps act as Ctrl
keycode 29 = Caps_Lock #This makes Ctrl act as Caps
# alt_is_meta #This fixes the Alt key
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment