2

I used to have my media keys bound to prev/next/pause with i3 like so

bindsym XF86AudioPrev exec --no-startup-id mpc prev

But I wanted to also use other players so I set it to

bindsym XF86AudioPlay         exec --no-startup-id playerctl play-pause

which runs via the D-Bus and controls all media players that follow the MPRIS Spec readme

So is there a MPRIS module for mpd or an adapter that runs as a service and translates the mpris signals for the mpd? I couldn't find any, but it would be nice to use the media keys for both, not just for one XOR the other.

2 Answers2

3

As an alternative to mpDris2, I'd recommend: mpd-mpris. It is an implementation of the same idea but in Golang and not in Python and thus it is much lighter and it doesn't have runtime dependencies.

2

The MPRIS v2 gateway for mpd is mpDris2.

(I'm affiliated with the project, but I don't know of any other software which implements MPRIS v2, only one for the obsolete and incompatible MPRIS v1.)

grawity
  • 501,077