Skip to content

Instantly share code, notes, and snippets.

@PHLAK
Created October 25, 2012 19:22
Show Gist options
  • Save PHLAK/3954824 to your computer and use it in GitHub Desktop.
Save PHLAK/3954824 to your computer and use it in GitHub Desktop.
Xmodmod key map for fixing Mac Pro keyboard
! Set key codes
keycode 37 = Control_L
keycode 105 = Control_R
keycode 64 = Super_L
keycode 108 = Super_R
keycode 133 = Alt_L
keycode 134 = Alt_R
keycode 191 = Print
! Clear key modifier mappings
clear Control
clear Shift
clear Lock
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
! Add key modifiers
add Control = Control_L Control_R
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Mod1 = Alt_L Alt_R
add Mod2 = Num_Lock
add Mod4 = Super_L Super_R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment