Created
July 8, 2015 13:29
-
-
Save lapthorn/4135e3acb44e95e82f12 to your computer and use it in GitHub Desktop.
pomodoro
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
#!/bin/bash | |
SEC_IN_MIN=60 | |
DELAY="$1" | |
echo pomodoro | |
sleep $((10*${SEC_IN_MIN})) | |
echo 15mins left | |
# say 'Keep on trucking!' | |
sleep $((15*${SEC_IN_MIN})) | |
if [ "${DELAY}" == "" ]; then | |
DELAY="5" | |
fi | |
while true; do | |
for i in pomodoro tomato ;do | |
say ${i} | |
echo ${i} | |
sleep ${DELAY} | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment