blob: a2c371dda1a2f3d824316af72c2cc1367ed0c61e (
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
27
28
29
30
31
|
#!/bin/sh
notif() { notify-send -t 1000 -w "pomo" "$1"; }
for msg in "three" "two" "one"
do notif "$msg"
done
# $1: time in minutes
# $2: msg for notification
ring_ring()
{
date '+%R B'
notify-send -w "$(($1*1000*60))" -u critical "pomo" "$2"
}
i="${1-0}"
while true
do
notif "<b>START</b>"
date '+%R S'
sleep 20m
if [ "$i" -eq 3 ]
then
i=0
ring_ring 20 "GIGA BREAK TIME"
else
ring_ring 5 "BREAK TIME"
i=$((i+1))
fi
done
|