Skip to content

Instantly share code, notes, and snippets.

@timofurrer
Created September 9, 2013 12:00
Show Gist options
  • Save timofurrer/6494655 to your computer and use it in GitHub Desktop.
Save timofurrer/6494655 to your computer and use it in GitHub Desktop.
! tuxtimo's keyboard configuration
! Keyboard: Apple, Inc. Hub in Aluminum Keyboard
! swap Alt and Cmd keys.
keycode 37 = Control_L
!keycode 49 = less greater less greater backslash brokenbar bar
keycode 133 = Alt_L Meta_L
keycode 64 = Super_L
keycode 108 = Super_R
keycode 134 = ISO_Level3_Shift Multi_key
keycode 105 = Control_R Multi_key
! clear some keys
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
! remap cleared keys
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add Mod1 = Alt_L 0x007D
add Mod2 = Num_Lock
add Mod4 = Super_L Super_R
add Mod5 = Mode_switch ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift
! configure '=' key on numpad as '='.
keycode 0x7D = equal
! configure key under escape for section and degree symbol
keycode 49 = section degree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment