I'm trying to understand what is going on. I'm running xev
to debug this issue.
For a normal key, like ESC
, the output of xev
is:
KeyPress event, serial 37, synthetic NO, window 0x5800001,
root 0x7c0, subw 0x0, time 5520877, (82,81), root:(3374,285),
state 0x10, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
But with Fn, the result is:
FocusOut event, serial 37, synthetic NO, window 0x5800001,
mode NotifyGrab, detail NotifyAncestor
FocusOut event, serial 37, synthetic NO, window 0x5800001,
mode NotifyUngrab, detail NotifyPointer
FocusIn event, serial 37, synthetic NO, window 0x5800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967232 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I wanted to remap the key using the xkb
file, as explained here, but it's not evident how to do for the Fn.