Skip to content

Instantly share code, notes, and snippets.

@camsaul
Created September 3, 2020 21:37
Show Gist options
  • Save camsaul/4f8096c0eed8483e1c0247aef6409670 to your computer and use it in GitHub Desktop.
Save camsaul/4f8096c0eed8483e1c0247aef6409670 to your computer and use it in GitHub Desktop.
Xmodmap to make Right Alt = Alt, Menu Button = Super, Right Control = Hyper
! Use these commands to determine original values:
!
! xmodmap -pke
! xmodmap -pm
! original values
!
! keycode 37 = Control_L NoSymbol Control_L
! keycode 64 = Alt_L Meta_L Alt_L Meta_L
! keycode 109 = Control_R NoSymbol Control_R
! keycode 113 = Alt_R Meta_R Alt_R Meta_R
! keycode 115 = Super_L NoSymbol Super_L
! keycode 116 = Super_R NoSymbol Super_R
! keycode 117 = Menu NoSymbol Menu
! keycode 125 = NoSymbol Alt_L NoSymbol Alt_L
! keycode 127 = NoSymbol Super_L NoSymbol Super_L
! keycode 128 = NoSymbol Hyper_L NoSymbol Hyper_L
! keycode 156 = NoSymbol Meta_L NoSymbol Meta_L
! Set left alt = Meta_L
keycode 64 = Meta_L
! Set right alt = Alt_R
keycode 113 = Alt_R
! Set right control = right hyper
keycode 109 = Hyper_R
! Set menu key = Right Super
keycode 117 = Super_R
clear control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
add control = Control_L
add mod1 = Meta_L
add mod2 = Num_Lock
add mod3 = Alt_R
add mod4 = Super_R
add mod5 = Hyper_R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment