sconsify icon indicating copy to clipboard operation
sconsify copied to clipboard

[Feature-Request] MPRIS2 support

Open evamvid opened this issue 5 years ago • 5 comments

This software seems like a great alternative to the official spotify GUI, which is a little resource heavy. However, MPRIS2 support would be awesome so that it can be controlled with the media keys, and song metadata can be piped to the status bar. That way, it could be basically dropped into existing setups!

evamvid avatar Jan 24 '19 17:01 evamvid

Hi @elquimista Could elaborate a bit more? I don't know what MPRIS2 is.

fabiofalci avatar Jan 25 '19 17:01 fabiofalci

@fabiofalci I don't know either. cc @evamvid

elquimista avatar Jan 25 '19 23:01 elquimista

@fabiofalci @elquimista MPRIS2 is basically a protocol that lets media player applications be controlled over dbus. So you can do things like assigning media keys or shortcuts that can be used to control the application from anywhere on the system. For example, I can be in my web browser, and play, plause, fast forward, or rewind my media player that's running in the background by using the media keys on my laptop/keyboard, because it goes through dbus -- I don't have to have the app in focus.

A practical example -- I have one keybinding in my WM config, which can send the play/pause command to the spotify client, vlc, or mpd, depending on which one I'm using at the moment, because they all have MPRIS2 compatibility.

evamvid avatar Jan 31 '19 17:01 evamvid

@fabiofalci @elquimista maybe a better way to put is that instead of sonsify having to run its own server for interproccess communications, mpris does the same thing over dbus

evamvid avatar Feb 28 '19 13:02 evamvid

+1 I find it cumbersome to define different hotkeys for sconsify. With MPRIS support, I can use the same hotkeys for all media players.

ruifm avatar May 27 '19 11:05 ruifm