Created
August 18, 2011 14:50
-
-
Save andersondias/1154212 to your computer and use it in GitHub Desktop.
Pomodoro Script for Ubuntu
This file contains 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
# 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