Skip to content

Instantly share code, notes, and snippets.

@ulgens
Last active August 29, 2015 14:00
Show Gist options
  • Save ulgens/11275020 to your computer and use it in GitHub Desktop.
Save ulgens/11275020 to your computer and use it in GitHub Desktop.
Convert Mac modifier keys layout to PC keyboard format
!mod1 = Alt_L
!mod4 = Super_L Super_R
!mod5 = ISO_Level3_Shift (Alt_gr)
! Control_L Alt_L Super_L Super_R ISO_Level3_Shift // Old keys
! 37 64 133 134 108 // Keycodes
! Control_L Super_L Alt_L ISO_Level3_Shift Control_R I // New keys
keycode 37 = Control_L
keycode 108 = Control_R
keycode 134 = ISO_Level3_Shift
keycode 64 = Super_L
keycode 133 = Alt_L
clear control
clear mod1
clear mod4
clear mod5
add control = Control_L Control_R
add mod1 = Alt_L
add mod4 = Super_L
add mod5 = ISO_Level3_Shift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment