Skip to content

Instantly share code, notes, and snippets.

@priyadarshan
Last active May 8, 2017 15:20
Show Gist options
  • Save priyadarshan/765be65d7eed192e1fd373b1d7160862 to your computer and use it in GitHub Desktop.
Save priyadarshan/765be65d7eed192e1fd373b1d7160862 to your computer and use it in GitHub Desktop.
Change keyboard to have C-M-S and Hyper
! To reset:
! setxkbmap -layout us
! Alt -> Ctrl
! Win -> Meta
! Ctrl -> Super
! Caps-lock -> Hyper
clear Lock
clear Control
clear Mod1
clear Mod4
clear Mod5
keycode 0x09 = Escape NoSymbol Escape
keycode 0x6F = Print Sys_Req Print Sys_Req
keycode 0x42 = Hyper_L NoSymbol Hyper_L
keycode 0x3E = Shift_R ISO_Next_Group Shift_R ISO_Next_Group
keycode 0x25 = Super_L NoSymbol Super_L
keycode 0x73 = Meta_L NoSymbol Meta_L
keycode 0x40 = Control_L NoSymbol Control_L
keycode 0x41 = space NoSymbol space
keycode 0x71 = Alt_R Meta_R Alt_R Meta_R
keycode 0x74 = Super_R NoSymbol Super_R
keycode 0x75 = Menu NoSymbol Menu
keycode 0x6D = Control_R NoSymbol Control_R
! Alt_R gives èàùòìé œ ae ™ etc
keycode 113 = Multi_key
add Control = Control_L
add Mod1 = Meta_L 0x009C
add Mod3 = Hyper_L
add Mod4 = Super_L 0x007F 0x0080
add Mod5 = Mode_switch ISO_Level3_Shift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment