Skip to content

Instantly share code, notes, and snippets.

@dolzenko
Created November 13, 2012 09:51
Show Gist options
  • Save dolzenko/4064945 to your computer and use it in GitHub Desktop.
Save dolzenko/4064945 to your computer and use it in GitHub Desktop.
Apple compact wired keyboard Layout for Ubuntu
! Swap Alt and Cmd keys.
keycode 37 = Control_L
keycode 133 = Alt_L Meta_L
keycode 64 = Super_L
keycode 108 = Super_R
keycode 134 = Alt_L Meta_L
keycode 108 = Control_R Multi_key
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add Mod1 = Alt_L 0x007D
!some configurations, for example tha italian layout keyboard, will require this:
!add Mod1 = Alt_L
!because the "0x007D" will assign the "+*]" key to the unity menu
add Mod2 = Num_Lock
add Mod4 = Super_L Super_R
add Mod5 = Mode_switch ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment