Run playerctld as a dbus unit with Restart=on-failure, start it through that unit on D-Bus activation, tie mpris-proxy to it, and bind the XF86 media keys to playerctl in xmonad.
5 lines
114 B
Desktop File
5 lines
114 B
Desktop File
[D-BUS Service]
|
|
Name=org.mpris.MediaPlayer2.playerctld
|
|
Exec=/usr/bin/playerctld
|
|
SystemdService=playerctld.service
|