Skip to content

Instantly share code, notes, and snippets.

@jbeard4
Created June 3, 2012 22:05
Show Gist options
  • Save jbeard4/2865183 to your computer and use it in GitHub Desktop.
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
#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