fabiofalci / sconsify

A spotify console application
https://fabiofalci.github.io/sconsify
Apache License 2.0
566 stars 26 forks source link

[Feature-Request] MPRIS2 support #110

Open evamvid opened 5 years ago

evamvid commented 5 years ago

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!

fabiofalci commented 5 years ago

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

elquimista commented 5 years ago

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

evamvid commented 5 years ago

@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 commented 5 years ago

@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

ruifm commented 5 years ago

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