Skip to content

Instantly share code, notes, and snippets.

@ntietz
Forked from cestella/pomodoro.sh
Created February 1, 2012 04:13
Show Gist options
  • Select an option

  • Save ntietz/1715049 to your computer and use it in GitHub Desktop.

Select an option

Save ntietz/1715049 to your computer and use it in GitHub Desktop.
Simple pomodoro timer in a shell
echo "PLAY DURATION: $PLAY_DURATION seconds"
while true; do
echo "WORKING FOR $1 minutes"
sleep $WORK_DURATION && \
echo "^G" && \
echo "(SayText \"PLAY FOR $2 MINUTES\")" | festival && \
echo "^G" && \
sleep $PLAY_DURATION && \
echo "^G" && \
echo "(SayText \"WORK FOR $1 MINUTES\")" | festival && \
echo "^G"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment