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.
6 lines
80 B
Plaintext
6 lines
80 B
Plaintext
[Service]
|
|
Type=dbus
|
|
ExecStart=
|
|
ExecStart=/usr/bin/playerctld
|
|
Restart=on-failure
|