[Solved?]Universal multimedia keys

Everything about X, Gnome, KDE, ... and everything running on it

[Solved?]Universal multimedia keys

Postby VentGrey » 2017-02-23 23:41

I tried using Debian 9 xfce and I encountered a problem using Spotify and Clementine music player, problem is that i cannot control them with my multimedia keys (such as play/pause, rewind) if i configure the Dbus in spotify then clementine throws a
Code: Select all
QxtGlobalShortcut failed to register: "Media Previous"
error and to fix it i have to delete the dbus order, anyone knows what am I doing wrong or how to configure keys properly?
Last edited by VentGrey on 2017-03-03 01:59, edited 1 time in total.
“I felt myself on the edge of the world; peering over the rim into a fathomless chaos of eternal night.”
― H.P. Lovecraft after trying Debian SidImage
User avatar
VentGrey
 
Posts: 156
Joined: 2016-04-26 23:57
Location: Guanajuato México

Re: Universal multimedia keys

Postby bw123 » 2017-02-24 00:27

if i configure the Dbus in spotify


A little more info about this dbus config thru spotify might be interesting, also I'm not sure about "Universal multimedia keys" what exactly are they?
User avatar
bw123
 
Posts: 2399
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Universal multimedia keys

Postby VentGrey » 2017-02-24 03:17

Just stolen from another wiki:
Code: Select all
# Play/Pause
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
XF86AudioPlay

# Next
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
XF86AudioNext

# Previous
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
XF86AudioPrev

# Stop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
XF86AudioStop


What I meant by universal is rather simple xD, in Desktop environments like MATE or Cinnamon multimedia keys work out of the box, i can use them for youtube, clementine, spotify, whatever suits my needs, however on xfce this seems impossible (or too complex for me since im not familiar with keyboard configs) :mrgreen:
“I felt myself on the edge of the world; peering over the rim into a fathomless chaos of eternal night.”
― H.P. Lovecraft after trying Debian SidImage
User avatar
VentGrey
 
Posts: 156
Joined: 2016-04-26 23:57
Location: Guanajuato México

Re: Universal multimedia keys

Postby debiman » 2017-02-24 21:01

so what is this code snippet?
how are you using it?

please some more explanation, code etc.

it seems to be doing something, since clementine is complaining that it can't use its global (not universal) hotkeys anymore.

also, you can't control TWO applications at the same time with the same global hotkeys, do you understand that?
User avatar
debiman
 
Posts: 1519
Joined: 2013-03-12 07:18

Re: Universal multimedia keys

Postby VentGrey » 2017-02-24 22:21

you can't control TWO applications at the same time with the same global hotkeys, do you understand that?

I know, i do not have spotify and clementine open at the same time, that would be plain stupid. It just got plain weird that global keys stopped working, I have clementine with default keys and the keysnippets are the same as the code i posted above with the same dbus orders. :shock:
“I felt myself on the edge of the world; peering over the rim into a fathomless chaos of eternal night.”
― H.P. Lovecraft after trying Debian SidImage
User avatar
VentGrey
 
Posts: 156
Joined: 2016-04-26 23:57
Location: Guanajuato México

Re: Universal multimedia keys

Postby debiman » 2017-02-28 06:24

i still don't know where you put that code.

if i configure the Dbus in spotify then clementine throws a error

have you tried the other way round?
clementine first?

I'm not so good with dbus, it could be that if you define global hotkeys in spotify, it uses dbus and masks that key even when spotify is not running? that would be poor coding, but possible.

maybe dbus can be set up to check first if spotify is running, and to pass that key through otherwise.
User avatar
debiman
 
Posts: 1519
Joined: 2013-03-12 07:18

Re: Universal multimedia keys

Postby VentGrey » 2017-03-03 01:58

have you tried the other way round?
clementine first?

Yup and it did not work, at this point what solved the problem was using the Fn + F"x" Key for changing tracks. :?
“I felt myself on the edge of the world; peering over the rim into a fathomless chaos of eternal night.”
― H.P. Lovecraft after trying Debian SidImage
User avatar
VentGrey
 
Posts: 156
Joined: 2016-04-26 23:57
Location: Guanajuato México


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable