I have function keys on my laptop, for instance XF86AudioLowerVolume
. I can associate this key with some command in my openbox configuration file, and use it to lower/increase audio volume.
I found the name of this function key with xev
command:
KeyRelease event, serial 47, synthetic NO, window 0x1c00001,
root 0x196, subw 0x0, time 85289390, (524,165), root:(525,203),
state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
However, for my other function keys, xev
does not show proper key names. For instance, the key which is supposed to be used to "decrease screen brightness". When pressed, xev
shows NoSymbol
:
KeyPress event, serial 43, synthetic NO, window 0x1c00001,
root 0x196, subw 0x0, time 2651872, (850,161), root:(851,199),
state 0x10, keycode 101 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 43, synthetic NO, window 0x1c00001,
root 0x196, subw 0x0, time 2651872, (850,161), root:(851,199),
state 0x10, keycode 101 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
The other, paired key "increase screen brightness" also shows NoSymbol
:
KeyPress event, serial 43, synthetic NO, window 0x1c00001,
root 0x196, subw 0x0, time 2653165, (850,161), root:(851,199),
state 0x10, keycode 212 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 43, synthetic NO, window 0x1c00001,
root 0x196, subw 0x0, time 2653165, (850,161), root:(851,199),
state 0x10, keycode 212 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Only the keycode
is different for these two keys.
Does it mean I cannot use these keys to associate these with some command?
They clearly work as keyboard keys, why does xev
show NoSymbol
?