Control media players with playerctl from media keys and headphones
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.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=org.mpris.MediaPlayer2.playerctld
|
||||
Exec=/usr/bin/playerctld
|
||||
SystemdService=playerctld.service
|
||||
Reference in New Issue
Block a user