Last active
February 17, 2017 06:51
-
-
Save acro5piano/1574cba9addf83d96e8815cf49def900 to your computer and use it in GitHub Desktop.
Pomodoro in Linux ref: http://qiita.com/acro5piano/items/791e90ae6f88bc0b940e
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
chmod +x ~/bin/pomo |
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
$ pomo | |
------------------- | |
pomodoro start | |
done step 1 | |
take a rest 5 minutes | |
------------------- | |
pomodoro start | |
done step 2 | |
take a rest 5 minutes |
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/bash | |
count=1 | |
while true; do | |
echo "-------------------" | |
echo "pomodoro start" | |
notify-send -u critical -i appointment -t 10000 "pomodoro start!" | |
sleep 1500 | |
echo "done step $((count++))" | |
echo "take a rest 5 minutes" | |
notify-send -u critical -i appointment -t 300000 "pomodoro end..." | |
sleep 300 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment