summaryrefslogblamecommitdiffstats
path: root/roles/obs/templates/music
blob: 3e729ec88711b6e6fea060498cb5479c545b9230 (plain) (tree)
1
2
3
4
5


                                                                    
                                                                                                                                    
  
if screen -list | grep -q background; then
  echo "Already running in screen, attach with screen -x background"
else
  screen -dmS background /bin/bash -c "mpv {{ background_music_dir }}/* --shuffle --loop=inf --volume={{ background_music_volume }}"
fi