!! -*- xmodmap -*-
!!! Put Multi_key on End key for xcape.
keycode 115 = Multi_key
!!! Put Lvl3 on Fn-Space. Stupid keyboard.
keycode 160 = ISO_Level3_Shift
!!! Both shifts for good typing practice.
!!! Right one will be additionally Escape
add shift = Shift_L
add shift = Shift_R
!!! Now we will manage Meta key. Since it is important in emacs, we will
!!! use two of them --- to left and to right of space.
!!! These bingings are default, but I prefer beeing explicit.
keycode 64 = Meta_L
keycode 108 = Meta_R
add mod1 = Meta_L
add mod1 = Meta_R
!!! Make menu key as mod2 aka Alt.
keycode 135 = Alt_R
add mod2 = Alt_R
!!! Make both was-control keys Hyper.
keycode 105 = Hyper_R
keycode 37 = Hyper_L
add mod3 = Hyper_R
add mod3 = Hyper_L
!!! Make was-windows key super.
keycode 133 = Super_L
add mod4 = Super_L
!!! It is unclear what mod5 good for. I already have all modifiers
!!! emacs know about. For now, just ignore mod5.
!!! Caps lock is history mistake. Lets make it and Enter
!!! work as Control. Real return action will be managed by XCape.
!! Caps in previous life
keycode 66 = Control_L
add control = Control_R
add control = Control_L
!!! Since some application prefers Return to KP_Enter, rebind
!!! KP_Enter on digit keyboard to Return.
keycode 104 = Return