summaryrefslogtreecommitdiffstats
path: root/roles/obs/templates
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-24 10:14:13 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-24 10:14:13 -0500
commit033117f23aae412f9b5f8d9525d08f2830be7f79 (patch)
tree41c53de58fe2ec113b49dca88b616f0c8f740b31 /roles/obs/templates
parent7707f076cb4a9762040afc4755bca231a03bdc47 (diff)
downloademacsconf-ansible-033117f23aae412f9b5f8d9525d08f2830be7f79.tar.xz
emacsconf-ansible-033117f23aae412f9b5f8d9525d08f2830be7f79.zip
background music
Diffstat (limited to 'roles/obs/templates')
-rwxr-xr-xroles/obs/templates/mpv-track5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/obs/templates/mpv-track b/roles/obs/templates/mpv-track
index b6d6d67..77d73bd 100755
--- a/roles/obs/templates/mpv-track
+++ b/roles/obs/templates/mpv-track
@@ -2,6 +2,11 @@
# Run MPV with the output set to the right sink and with an IPC socket
# {{ ansible_managed }}
+# Kill the background music if playing
+if screen -list | grep -q background; then
+ screen -S background -X quit
+fi
+
# Update the overlay
FILE=$1
if [[ ! -f $FILE ]]; then