Hi,
I want to remap a single key on my keyboard. This is the key which will delete or in numpad mode will put a ‘.’ or a ‘,’ in my case.
I want the ‘,’ to be a ‘.’ .
So I found out that xev gives me some information about the keys.
So I tried something like
xmodmap -e ‘keycode 91 = period’
Which is not what I want. Because than the delete command gets overwritten instead of the comma. So I tried
xmodmap -e ‘keysym 0x0 = period’
Which looked like a endless loop to me. 0x0 is also quite strange, isn’t it? But this is what xev gave me for numlock activated and the comma-key.
The difference between the delete and the comma is the “state”.
Xev returns for delete:
KeyRelease event, serial 34, synthetic NO, window 0x4800001,
root 0x10c, subw 0x0, time 1934052, (412,580), root:(416,605),
state 0x0, keycode 91 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
The comma key gives:
KeyRelease event, serial 34, synthetic NO, window 0x4800001,
root 0x10c, subw 0x0, time 1323230, (350,498), root:(354,523),
state 0x10, keycode 91 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
The difference is the state. So the questions: How do I get the comma to behave like period/dot?