mirror of
https://github.com/zebrajr/HomeLab.git
synced 2025-12-06 00:20:22 +01:00
Added: bashScript + pomodoro.sh
This commit is contained in:
parent
431e48717a
commit
3c5ab48fc7
25
bashScripts/pomodoro.sh
Executable file
25
bashScripts/pomodoro.sh
Executable 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
|
||||
BIN
bashScripts/rsc/pomodoro.png
Normal file
BIN
bashScripts/rsc/pomodoro.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Loading…
Reference in New Issue
Block a user