summaryrefslogtreecommitdiff
path: root/bin/extra/pomo
blob: 097134372cf0aef18314b795e6023f15c0da3a69 (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
		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