blob: 26276282fc3a936ded880ccf44d0bca13c9210d1 (
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
|
#!/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
sleep 20m
if [ "$i" -eq 3 ]
then
i=-1
notify-send -u critical -t 20000 "pomodoro" "GIGA BREAK TIME"
sleep 20m
else
notify-send -u critical -t 5000 "pomodoro" "BREAK TIME"
sleep 5m
fi
i=$((i+1))
done
|