Multimedia keys and Xfce
Pétùr
peturvilj at gmail.com
Tue Apr 16 11:23:19 CEST 2019
Le 11/04/2019 à 14:28, Fabrice Delliaux a écrit :
> Have you tried to run xev to test if you correctly get those events ?
> You should find something like this when pressing/releasing keys :
>
>> KeyPress event, serial 38, synthetic NO, window 0x5600001,
>> root 0x1de, subw 0x0, time 18479792, (488,-94), root:(1239,350),
>> state 0x10, keycode 174 (keysym 0x1008ff15, XF86AudioStop),
>> same_screen YES, XLookupString gives 0 bytes: XmbLookupString
>> gives 0 bytes: XFilterEvent returns: False
>>
>> KeyRelease event, serial 38, synthetic NO, window 0x5600001,
>> root 0x1de, subw 0x0, time 18479792, (488,-94), root:(1239,350),
>> state 0x10, keycode 174 (keysym 0x1008ff15, XF86AudioStop),
>> same_screen YES, XLookupString gives 0 bytes: XFilterEvent
>> returns: False
Thanks!
xev doesn't recognize my multimedia keys. I have for each key:
FocusOut event, serial 37, synthetic NO, window 0x6800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x6800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, 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
*but* I doesn't prevent the volume keys to works perfectly. And the
prev/next/toggle which are not working are "active". If I press to one
of them while a terminal is opened, the cursor blinks.
And if I use a multimedia keys as shortcut in the Xfce keyboard
shortcut interface, I have the name "XF86AudioNext" appearing (but the
shortcut doesn't work).
> If you get the events, it seems that some applications can hijack the
> media events, like chrome :
>
> https://bbs.archlinux.org/viewtopic.php?id=207360
Maybe. Maybe also I have something not installed?
I have two computers (laptop + tower) with the same model of keyboard,
both running debian sid and xfce.
On my tower, prev/next/toggle works (they launch mpc next/prev/toggle).
On the laptop, they don't. The laptop has a built-in keyboard with
multimedia keys (FN+...) which works, maybe it is related.
More information about the Xfce
mailing list