diff options
Diffstat (limited to '.config/systemd/user/playerctld.service')
-rw-r--r-- | .config/systemd/user/playerctld.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/systemd/user/playerctld.service b/.config/systemd/user/playerctld.service new file mode 100644 index 0000000..3d93a28 --- /dev/null +++ b/.config/systemd/user/playerctld.service @@ -0,0 +1,16 @@ +[Unit] +Description=Playerctl control media players via MPRIS +Documentation=https://github.com/altdesktop/playerctl + +[Service] +Environment=DISPLAY=:0 + +ExecStart=/usr/bin/playerctld + +Restart=always +# Restart service after 10 seconds if service crashes +RestartSec=10 +SyslogIdentifier=playerctld + +[Install] +WantedBy=basic.target |