summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-08-15 13:24:47 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-08-15 13:24:47 +0200
commit4185a9b7ef76d686af011c8f66c14150add04426 (patch)
treeb5031a388528b51bea2d006b18c9abe68e57af01 /bin
parent86c5ff5335a1adaf721778bdfcb79ff06726e71f (diff)
checkpoint
Diffstat (limited to 'bin')
-rwxr-xr-xbin/menuscripts/pomo5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/menuscripts/pomo b/bin/menuscripts/pomo
index eb4c30b..f210b82 100755
--- a/bin/menuscripts/pomo
+++ b/bin/menuscripts/pomo
@@ -1,5 +1,8 @@
#!/bin/sh
+# time in minutes of one pomodoro
+[ "$SLEEP_TIME" ] || SLEEP_TIME=25
+
### FUNCTIONS
notif() {
herbe "pomo" "$1" &
@@ -58,7 +61,7 @@ done
while true; do
notif "START"
printf >&2 '%s S %s\n' "$(date '+%R')" "$round"
- sleep 25m
+ sleep ${SLEEP_TIME}m
if [ "$round" -eq 3 ]; then
ring_ring 20 "GIGA BREAK TIME"
round=0