]> git.rmz.io Git - dotfiles.git/blobdiff - systemd/user/pause-mpd.service
systemd: pause mpd on suspend
[dotfiles.git] / systemd / user / pause-mpd.service
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