summaryrefslogtreecommitdiffstats
path: root/roles/obs/templates/start-background-music
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obs/templates/start-background-music')
-rwxr-xr-xroles/obs/templates/start-background-music5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/obs/templates/start-background-music b/roles/obs/templates/start-background-music
new file mode 100755
index 0000000..af28208
--- /dev/null
+++ b/roles/obs/templates/start-background-music
@@ -0,0 +1,5 @@
+if screen -list | grep -q background; then
+ echo "Already running in screen, attach with screen -x background"
+else
+ screen -S background /bin/bash -c "mpv ~/stream/background.wav --loop=yes"
+fi