Skip to content

Instantly share code, notes, and snippets.

@torbiak
Created March 27, 2016 05:56
Show Gist options
  • Save torbiak/da8ce4d3cb6fa5cc57b0 to your computer and use it in GitHub Desktop.
Save torbiak/da8ce4d3cb6fa5cc57b0 to your computer and use it in GitHub Desktop.
13" macbook air xmodmap
keycode 232 = XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp
keycode 121 = XF86AudioMute
keycode 122 = XF86AudioRaiseVolume
keycode 123 = XF86AudioLowerVolume
keycode 173 = XF86AudioPrev
keycode 172 = XF86AudioPlay
keycode 171 = XF86AudioNext
! F3 (w/o fn key) -> Insert, for pasting into terminals.
keycode 128 = Insert
! Convert the modifier keys to a more standard layout.
! Command -> Alt
! Alt_R -> Control
! Alt_L -> Super/Hyper/Windows/mod4
!
! Using keysyms might be more understandable than keycodes.
clear Lock
! Caps_Lock -> Control_L
keycode 66 = Control_L
! Alt_R -> Control_R
keycode 134 = Control_R
! Clear modifier groups to avoid surprising entries.
clear Control
add Control = Control_L Control_R
! Command_R -> Alt_R
keycode 108 = Alt_R
clear mod1
add mod1 = Alt_L Alt_R
! Alt_L -> Super_L/mod4, for dwm
keycode 133 = Super_L
clear mod4
add mod4 = Super_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment