and3rson / clay

Awesome standalone command line player for Google Play Music.
GNU General Public License v3.0
157 stars 11 forks source link

MPRIS2 support #32

Open ValentijnvdBeek opened 5 years ago

ValentijnvdBeek commented 5 years ago

Support the Media Player Remote Interfacing Specification D-Bus protocol.

Rationale:

Supporting MPRIS2 would allow one to control Clay with generic tools like playerctl and replace the current global keybindings system. This would allow us to fully drop Gtk as a dependency, simply our parsing logic and empowers headless users to globally bind keys [1].

It wouldn't add any dependencies to Clay since it uses D-Bus (already necessary for OSD) and the GLib loop (already used for GTK).

Tasks:

[1] Using some TTY window manager like tmux, screen or some other method.