Skip to content

Instantly share code, notes, and snippets.

@lapthorn
Created July 8, 2015 13:29
Show Gist options
  • Save lapthorn/4135e3acb44e95e82f12 to your computer and use it in GitHub Desktop.
Save lapthorn/4135e3acb44e95e82f12 to your computer and use it in GitHub Desktop.
pomodoro
#!/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