| t@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# IT'S EXERCISE TIME!
+# Requires the `festival` speech synthesizer.
+
+# Wait time in seconds between sets
+WAITSECS=120
+
+function usage {
+ echo "Usage: $1 "
+ echo "Example: For three sets of ten pushups, use:"
+ echo " $0 3 'Do ten push ups'"
+}
+
+if [ "$1" == "-h" ]; then
+ usage
+ exit
+fi
+
+# stop mpd if it is running
+mpc stop &> /dev/null
+
+# announce exercise the specified number of times
+for ((i=0; i<$1; i++)); do
+ echo "It's exercise time! $2" | festival --tts
+ sleep $WAITSECS
+done |