From 033117f23aae412f9b5f8d9525d08f2830be7f79 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 24 Nov 2022 10:14:13 -0500 Subject: background music --- roles/obs/templates/mpv-track | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/obs/templates/mpv-track') 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 -- cgit v1.2.3