I am trying to rebind my right Alt key as a Hyper key, so that I can make own keybindings that won't get in the way of my apps/WM. Unfortunately, I cannot seem to rebind this key.
After freshly logging in, if I run xev and press my right Alt key, I get this:
But if I run xmodmap to try to rebind the key, it doesn't work:Code:KeyPress event, serial 37, synthetic NO, window 0x2200001, root 0x13c, subw 0x0, time 50532932, (-1,160), root:(584,211), state 0x2000, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x2200001, root 0x13c, subw 0x0, time 50533064, (-1,160), root:(584,211), state 0x2080, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XKeysymToKeycode returns keycode: 92 XLookupString gives 0 bytes: XFilterEvent returns: False
Pressing my right Alt key doesn't produce the 'x' character. Pressing my right Alt key inside of xev produces the following:Code:$ xmodmap -e 'keycode 108 = x'
I can use xev to find the keycode for my Tab key and rebind it to 'x':Code:KeyPress event, serial 50, synthetic NO, window 0x4c00001, root 0x13c, subw 0x0, time 51429231, (178,59), root:(184,453), state 0x2000, keycode 108 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 50, synthetic NO, window 0x4c00001, root 0x13c, subw 0x0, time 51429452, (178,59), root:(184,453), state 0x2000, keycode 108 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
and then pressing my Tab key results in the 'x' character, but it doesn't work for my right Alt key.Code:$ xmodmap -e 'keycode 23 = x'
I've Googled and read the man pages, and I still don't know why I can't rebind my right Alt key. Any ideas?
Thanks in advance!



Adv Reply


Bookmarks