Add pomodoro script
This commit is contained in:
parent
7d335fb63d
commit
b6664d0ea4
1 changed files with 22 additions and 0 deletions
22
bin/pomodoro
Executable file
22
bin/pomodoro
Executable 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
|
Loading…
Reference in a new issue