#!/bin/bash # Play intro if recorded, then play files # {{ ansible_managed }} # play-with-intro $SLUG YEAR="{{ emacsconf_year }}" BASE_DIR="{{ emacsconf_caption_dir }}" CACHE_DIR="{{ emacsconf_caption_dir }}/cache" FIREFOX_NAME=firefox-esr SLUG=$1 PREFIX=$(get-file-prefix $SLUG) /usr/local/bin/reset-state # Update the overlay overlay $SLUG # Play the intro if it exists. If it doesn't exist, switch to the intro slide and stop processing. if [[ -f $CACHE_DIR/$PREFIX--intro.webm ]]; then mpv $CACHE_DIR/$PREFIX--intro.webm else firefox --kiosk $BASE_DIR/assets/in-between/$SLUG.png exit 0 fi /usr/local/bin/play $SLUG