#!/bin/sh
countdown 45 -noseconds &
for talk in "2 intro" "5 jvw" "5 jose" "5 andreas" "5 damog" \
	    "5 raphael" "5 matt" "5 joey" "3 jvw" "2 jvw" "2 jvw" "5 joey"; do
	set -- $talk
	time="$1"
	shift 1
	talk="$@"

	printf "Press enter to begin talk: $talk ($time minutes): "
	read line
	if [ -n "$pid" ]; then
		kill $pid 2>/dev/null
	fi
	countdown "$time" &
	pid=$!
	sh -c "sleep ${time}m; kill $pid 2>/dev/null" &
done
