-
-
Save ntietz/1715049 to your computer and use it in GitHub Desktop.
Simple pomodoro timer in a shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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