diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
commit | c3c4b8c6b4556e01770a75da4b6fbf8e1eba9ce4 (patch) | |
tree | 006d8799585d86557e570f03af93b112a079a697 /bin/extra/pomo | |
parent | 39a6cea6f2f198aa08189d345e0281a591d17ec4 (diff) | |
parent | 3d253cd428e2769e0449fbf0c3ece5c0ab41545c (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/pomo')
-rwxr-xr-x | bin/extra/pomo | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/bin/extra/pomo b/bin/extra/pomo deleted file mode 100755 index a2c371d..0000000 --- a/bin/extra/pomo +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 |