My keyboard switches the (German) keys [^] and [<], so I want to switch the two keys.
I identified the keycodes using xev and created a file ~/.xmodmap containing
keycode 94 = asciicircum degree
keycode 49 = less greater
When executing xmodmap ~/.xmodmap hardware key 94 now correctly outputs "^" instead of "<". Unfortunately the other key does not output any character at all.
xev returns the following output when the key is pressed
KeyRelease event, serial 32, synthetic NO, window 0x2e00001,
root 0x4b, subw 0x0, time 258843335, (169,-12), root:(185,111),
state 0x4000, keycode 49 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
do you know what the problem might be?
As far as I understand it the man page says that remove only works for modifiers, but I don't care for modifiers, I want to switch regular keys. Might there be another problem that is not related to that 'possible duplicate'?