You are not logged in.
The primary thing that I wanted to solve was to get Spotify working with media keys on my keyboard (it was and still is not working). However, it evolved to a weird behaviour regarding the keys.
So at first, I checked whether there are shortcuts set in gnome-shell's Settings in the Keyboard Shortcuts. They were so I though ok, gnome-shell eats those shortcuts, let's use xbindkeys. I fired up ``xbindkeys --key`` to get the correct key code and pressed the play/pause button. Nothing happened. However, if I pressed e.g. Alt + play/pause, it showed up as one would suspect, i.e. Alt+Mod2 + XF86AudioPlay. I though hmm, maybe gnome still eats it somehow, so I tried to unset the Play/Pause shortcut in the shortcut settings and instead tried to add a new shortcut but when I pressed the play/pause button, it did not get registered (but e.g. Alt + play/pause did, as in xbindkeys).
So, to summarize:
Keyboard Shortcuts in Gnome's Settings DO register play/pause button if I try to assign it to a built-in action, e.g. "Play (or play/pause)".
Keyboard Shortcuts in Gnome's Settings DO NOT register play/pause button if I try to assign it to a custom action.
Keyboard Shortcuts in Gnome's Settings DO register Alt + play/pause button if I try to assign it to a built-in or custom action.
xbindkeys DO NOT register play/pause button (regardless of whether it is assigned to any action in the Settings).
xbindkeys DO register Alt + play/pause button (regardless of whether it is assigned to any action in the Settings).
So, what can be done to make the media keys (I mentioned only play/pause but next, previous and stop all show the same behavior) work as any other key? Any help and/or guide to fix or at least analyze this problem is appreciated.
Offline
I just went with the current state of things and assigned the Alt+media key version of the shortcuts and in the end I find it quite nice, having extra shortcuts for spotify. However, the problem is still present and I'm curious as to what makes the keys special.
Offline