Skip to content

Instantly share code, notes, and snippets.

@bonndan
Created March 18, 2014 21:21
Show Gist options
  • Save bonndan/9629950 to your computer and use it in GitHub Desktop.
Save bonndan/9629950 to your computer and use it in GitHub Desktop.
xmodmap config for apple keyboard under ubuntu
! clean most of the modifiers
clear control
clear mod4
clear mod1
! gt, lt
keycode 49 = less greater less greater bar brokenbar bar
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032
! -----------------
! left side
! ----------------
! keycode 64 is the left alt key
keycode 64 = Super_L
! key code 133 is the left command key
keycode 133 = Alt_L Meta_L
! ------------------
! right side
! -------------------
! key code 134 is the right command key
keycode 134 = ISO_Level3_Shift Multi_key
!keycode 134 = ISO_First_Group
! keycode 105 is the right ctrl key
keycode 105 = Control_R
keycode 108 = Menu
add mod4 = Super_L
add mod1 = Alt_L Meta_L
add mod1 = Alt_R Meta_R
add control = Control_L
add control = Control_R
@oakmac
Copy link

oakmac commented Aug 4, 2018

Thank you for posting this! Very helpful 👍

With my Apple Wired Keyboard with Numeric Keypad running Ubuntu 16.04 I had to comment out the section for gt and lt characters (lines 7 and 8) in order to use the backtick / ~ key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment