-
-
Save gabriel-bezerra/3828697 to your computer and use it in GitHub Desktop.
Shell script Pomodoro timer for ubuntu unity
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
#!/bin/sh | |
# | |
# Pomodoro script. | |
# | |
# Displays a notification after 25 minutes. | |
# | |
# Don't forget to 'sudo apt-get install libnotify-bin' | |
# | |
# Shell script version by Gabriel Bezerra <[email protected]> | |
# based on the Ruby version by Philippe Creux at https://gist.github.com/1321896. | |
echo 'Go go go!' | |
notify-send -i face-cool 'Go go go!' | |
for i in $(seq 25 -1 1); do | |
echo $i | |
sleep 1m | |
done | |
echo 'End of Pomodoro!' | |
notify-send -i face-cool -t 0 'End of Pomodoro!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment