Skip to content

Instantly share code, notes, and snippets.

@acro5piano
Last active February 17, 2017 06:51
Show Gist options
  • Save acro5piano/1574cba9addf83d96e8815cf49def900 to your computer and use it in GitHub Desktop.
Save acro5piano/1574cba9addf83d96e8815cf49def900 to your computer and use it in GitHub Desktop.
chmod +x ~/bin/pomo
$ pomo
-------------------
pomodoro start
done step 1
take a rest 5 minutes
-------------------
pomodoro start
done step 2
take a rest 5 minutes
#!/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