I'm trying to bind multimedia keys by their names:

    $ grep mpc ~/.config/i3/config
    bindsym XF86AudioPrev exec --no-startup-id mpc prev
    bindsym XF86AudioNext exec --no-startup-id mpc next

Those bindings didn't work. `xev` didn't recognize "keypress" events
when I'm pressing Fn+F5-F7 and Fn+F1-F3 but:
1. `showkey` shows keycodes for each combination
2. keybindings for Fn+F1-F3 works fine

In attachments, you can find "xev.log" file where I'm pressing "q",
Fn+F1, "w", Fn+F5, "e'.

I'm using Debian Stretch with i3wm. Originally, I had a clean install
of Debian Stretch with XFCE, then I have installed Gnome3 and, finally,
started to use i3wm.
Outer window is 0x2a00001, inner window is 0x2a00002

PropertyNotify event, serial 8, synthetic NO, window 0x2a00001,
    atom 0x27 (WM_NAME), time 175270936, state PropertyNewValue

PropertyNotify event, serial 9, synthetic NO, window 0x2a00001,
    atom 0x22 (WM_COMMAND), time 175270936, state PropertyNewValue

PropertyNotify event, serial 10, synthetic NO, window 0x2a00001,
    atom 0x28 (WM_NORMAL_HINTS), time 175270936, state PropertyNewValue

CreateNotify event, serial 11, synthetic NO, window 0x2a00001,
    parent 0x2a00001, window 0x2a00002, (10,10), width 50, height 50
border_width 4, override NO

PropertyNotify event, serial 14, synthetic NO, window 0x2a00001,
    atom 0x159 (WM_PROTOCOLS), time 175270936, state PropertyNewValue

MapNotify event, serial 15, synthetic NO, window 0x2a00001,
    event 0x2a00001, window 0x2a00002, override NO

ReparentNotify event, serial 27, synthetic NO, window 0x2a00001,
    event 0x2a00001, window 0x2a00001, parent 0x200101,
    (0,0), override NO

ConfigureNotify event, serial 28, synthetic NO, window 0x2a00001,
    event 0x2a00001, window 0x2a00001, (0,0), width 679, height 245,
    border_width 2, above 0x0, override NO

PropertyNotify event, serial 28, synthetic NO, window 0x2a00001,
    atom 0x15b (WM_STATE), time 175270939, state PropertyNewValue

MapNotify event, serial 28, synthetic NO, window 0x2a00001,
    event 0x2a00001, window 0x2a00001, override NO

VisibilityNotify event, serial 28, synthetic NO, window 0x2a00001,
    state VisibilityUnobscured

Expose event, serial 28, synthetic NO, window 0x2a00001,
    (0,0), width 679, height 10, count 3

Expose event, serial 28, synthetic NO, window 0x2a00001,
    (0,10), width 10, height 58, count 2

Expose event, serial 28, synthetic NO, window 0x2a00001,
    (68,10), width 611, height 58, count 1

Expose event, serial 28, synthetic NO, window 0x2a00001,
    (0,68), width 679, height 177, count 0

ConfigureNotify event, serial 28, synthetic YES, window 0x2a00001,
    event 0x2a00001, window 0x2a00001, (683,519), width 679, height 245,
    border_width 2, above 0x0, override NO

FocusIn event, serial 28, synthetic NO, window 0x2a00001,
    mode NotifyNormal, detail NotifyNonlinear

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  4294967179 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   

PropertyNotify event, serial 28, synthetic NO, window 0x2a00001,
    atom 0x14d (_NET_WM_DESKTOP), time 175270940, state PropertyNewValue

KeyPress event, serial 30, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175273363, (174,-83), root:(859,438),
    state 0x10, keycode 24 (keysym 0x71, q), same_screen YES,
    XLookupString gives 1 bytes: (71) "q"
    XmbLookupString gives 1 bytes: (71) "q"
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175273398, (174,-83), root:(859,438),
    state 0x10, keycode 24 (keysym 0x71, q), same_screen YES,
    XLookupString gives 1 bytes: (71) "q"
    XFilterEvent returns: False

MappingNotify event, serial 33, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

FocusOut event, serial 33, synthetic NO, window 0x2a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 34, synthetic NO, window 0x2a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  4294967179 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   

MappingNotify event, serial 34, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 34, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175278961, (174,-83), root:(859,438),
    state 0x10, keycode 25 (keysym 0x77, w), same_screen YES,
    XLookupString gives 1 bytes: (77) "w"
    XmbLookupString gives 1 bytes: (77) "w"
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175279021, (174,-83), root:(859,438),
    state 0x10, keycode 25 (keysym 0x77, w), same_screen YES,
    XLookupString gives 1 bytes: (77) "w"
    XFilterEvent returns: False

MappingNotify event, serial 35, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

FocusOut event, serial 35, synthetic NO, window 0x2a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 36, synthetic NO, window 0x2a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  2   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   

MappingNotify event, serial 36, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 36, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175281918, (174,-83), root:(859,438),
    state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XmbLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175281973, (174,-83), root:(859,438),
    state 0x10, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175286118, (174,-83), root:(859,438),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x2a00001,
    root 0x497, subw 0x0, time 175286188, (174,-83), root:(859,438),
    state 0x50, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x2a00001,
    mode NotifyGrab, detail NotifyAncestor

ClientMessage event, serial 37, synthetic YES, window 0x2a00001,
    message_type 0x159 (WM_PROTOCOLS), format 32, message 0x15a (WM_DELETE_WINDOW)

Reply via email to