Add pomodoro script

This commit is contained in:
Talia 2020-05-25 13:19:16 +02:00
parent 7d335fb63d
commit b6664d0ea4
1 changed files with 22 additions and 0 deletions

22
bin/pomodoro Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
say() {
echo "🍅 Pomodoro: $1"
}
while true
do
for i in 1 2 3 4
do
say "Start working... 🔨"
sleep $((60 * 25))
if [ 4 -eq "$i" ]
then
say "Take a break... 💤"
sleep $((60 * 5))
else
say "Take a break... 💤"
sleep $((60 * 15))
fi
done
done