From: Samir Benmendil Date: Tue, 31 Oct 2023 22:09:03 +0000 (+0000) Subject: systemd: pause mpd on suspend X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/82182dca1e7e841153d1bd3973969032d321ef2e?ds=sidebyside systemd: pause mpd on suspend --- diff --git a/systemd/user/pause-mpd.service b/systemd/user/pause-mpd.service new file mode 100644 index 0000000..d550f06 --- /dev/null +++ b/systemd/user/pause-mpd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Pause MPD + +[Service] +Type=oneshot +ExecStart=/usr/bin/mpc -q pause + +[Install] +WantedBy=suspend.target