Skip to content

Instantly share code, notes, and snippets.

@andersondias
Created August 18, 2011 14:50
Show Gist options
  • Save andersondias/1154212 to your computer and use it in GitHub Desktop.
Save andersondias/1154212 to your computer and use it in GitHub Desktop.
Pomodoro Script for Ubuntu
# Dependencies: libnotify-bin sox
# Sound file download: http://www.soundjay.com/clock/alarm-clock-1.wav
DISPLAY=:0 notify-send -t 1000 -i ~/Pictures/icons/pomodoro.png "New Pomodoro starts" "You have 45 minutes to work."
while true; do
sleep 2700 # 45 minutes
DISPLAY=:0 notify-send -t 1000 -i ~/Pictures/icons/pomodoro.png "Pomodoro ends" "Take a break for 15 minutes!"
play ~/Music/effects/alarm-clock-1.wav
sleep 900 # 15 minutes
DISPLAY=:0 notify-send -t 1000 -i ~/Pictures/icons/pomodoro.png "New Pomodoro starts" "You have 45 minutes to work."
play ~/Music/effects/alarm-clock-1.wav
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment