Skip to content

Instantly share code, notes, and snippets.

@htruong
Created May 4, 2014 00:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htruong/fbfb0fd71f25831dc060 to your computer and use it in GitHub Desktop.
Save htruong/fbfb0fd71f25831dc060 to your computer and use it in GitHub Desktop.
! Chromebook C720 ~/.Xmodmap
! Huan Truong - 2014
! = <1:Key> <2:Shift+Key> <3:mode_switch+Key> <4:mode_switch+Shift+Key> <5:AltGr+Key> <6:AltGr+Shift+Key> <7:Ctrl+Alt+Key>
! Clear both Alt keys mapping
clear Mod1
add mod1 = Alt_L
! Make the right alt key to be the mode switch key
keycode 108 = Mode_switch
keycode 67 = XF86Back F1 F1 F1 F1 F1 XF86Switch_VT_1
keycode 68 = XF86Forward F2 F2 F2 F2 F2 XF86Switch_VT_2
keycode 69 = XF86Refresh F3 F3 F3 F3 F3 XF86Switch_VT_3
! "Full screen" key
keycode 70 = F11 F4 F4 F4 F4 F4 XF86Switch_VT_4
! "Rename" key
keycode 71 = F2 F5 F5 F5 F5 XF86Switch_VT_5
keycode 72 = XF86MonBrightnessDown F6 F6 F6 F6 F6 XF86Switch_VT_6
keycode 73 = XF86MonBrightnessUp F7 F7 F7 F7 F7 XF86Switch_VT_7
! Right alt+keys will make it multimedia control keys
keycode 74 = XF86AudioMute F8 XF86AudioStop F8 F8 F8 XF86Switch_VT_8
keycode 75 = XF86AudioLowerVolume F9 XF86AudioPrev F9 F9 F9 XF86Switch_VT_9
keycode 76 = XF86AudioRaiseVolume F9 XF86AudioNext F10 F10 F10 XF86Switch_VT_10
! The "search" key is mapped to delete :)
! Alt+Search will make it caps lock
keycode 133 = Delete Delete Caps_Lock NoSymbol
! Right alt+arrows will make page up page down home and end
keycode 111 = Up Up Prior Prior Up Up
keycode 116 = Down Down Next Next Down Down
keycode 113 = Left Left Home Home Left Left
keycode 114 = Right Right End End Right Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment