Added: bashScript + pomodoro.sh

This commit is contained in:
Carlos Sousa 2021-08-05 23:32:28 +02:00
parent 431e48717a
commit 3c5ab48fc7
3 changed files with 25 additions and 0 deletions

25
bashScripts/pomodoro.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
# 25 minutes = 1500
# 20 minutes = 1200
# 5 minutes = 300
worktime=1500
shorttime=300
longtime=1200
while true
do
for counter in {1..3}
do
notify-send -i "${PWD}/rsc/pomodoro.png" "Pomodoro Timer" "Work Work Work!"
sleep ${worktime}
notify-send -i "${PWD}/rsc/pomodoro.png" "Pomodoro Timer" "You earned a small break."
sleep ${shorttime}
done
notify-send -i "${PWD}/rsc/pomodoro.png" "Pomodoro Timer" "Okay, time to rest a bit longer."
sleep ${longtime}
done
exit 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB