blob: 27722a42fa315edcf6a832791a3d6abf5c70b09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
notif() { notify-send -t 1000 "pomo" "$1"; sleep 1; }
for msg in "three" "two" "one"
do notif "$msg"
done
i="${1-0}"
while true
do
notif "<b>START</b>"
date '+%R S'
sleep 20m
date '+%R B'
if [ "$i" -eq 3 ]
then
notify-send -u critical -t 1200000 "pomodoro" "GIGA BREAK TIME"
sleep 20m
i=0
else
notify-send -u critical -t 300000 "pomodoro" "BREAK TIME"
sleep 5m
i=$((i+1))
fi
done
|