Created
June 3, 2012 22:05
-
-
Save jbeard4/2865183 to your computer and use it in GitHub Desktop.
Implements the pomodoro technique in bash. Should work on most versions of Ubuntu >= 10.04
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
#decide on the task to be done | |
#set the pomodoro (timer) to 25 minutes | |
#work on the task until the timer rings; record with an x | |
#take a short break (5 minutes) | |
#every four "pomodoros" take a longer break (15-20 minutes) | |
n(){ | |
notify-send "$1" | |
espeak -v en "$1" & | |
} | |
while true; do | |
for i in `seq 1 4`; do | |
n "back to work" | |
sleep 25m | |
if [ $i -eq 4 ]; then | |
n "long break" | |
sleep 15m | |
else | |
n "short break" | |
sleep 5m | |
fi; | |
done; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment