#!/bin/bash
# Play intro (or display in-between slide and wait for input), then play files
# {{ ansible_managed }}

# Kill the background music if playing
if screen -list | grep -q background; then
    screen -S background -X quit
fi

# Update the overlay
SLUG=$1
overlay $SLUG
# Play the video
firefox https://media.emacsconf.org/{{ emacsconf_year }}/backstage/current/room/$SLUG