summaryrefslogtreecommitdiff
path: root/bin/extra/pomo
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-16 12:09:14 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-16 12:09:14 +0200
commit4ca15dd82c255dfad7e4cf5a347b971f97a0bfed (patch)
treea848847a680f25f04ab6d3a31bb9e10377d78f6d /bin/extra/pomo
parentdb8f32037483ade8fc3d8fc2cb2c0e18331e442e (diff)
parent6c78112e19f44ef79eebf1076041feff83c303e6 (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/pomo')
-rwxr-xr-xbin/extra/pomo31
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