]> git.rmz.io Git - dotfiles.git/commitdiff
systemd: pause mpd on suspend
authorSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 22:09:03 +0000 (22:09 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:18 +0000 (17:36 +0000)
systemd/user/pause-mpd.service [new file with mode: 0644]

diff --git a/systemd/user/pause-mpd.service b/systemd/user/pause-mpd.service
new file mode 100644 (file)
index 0000000..d550f06
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Pause MPD
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mpc -q pause
+
+[Install]
+WantedBy=suspend.target