summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra')
-rwxr-xr-xbin/extra/pomo6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/extra/pomo b/bin/extra/pomo
index 859dd12..68f3d59 100755
--- a/bin/extra/pomo
+++ b/bin/extra/pomo
@@ -1,5 +1,5 @@
#!/bin/sh
-notif() { notify-send -t "${2:-1000}" "pomo" "$1"; sleep 1; }
+notif() { notify-send -t 1000 -w "pomo" "$1"; }
for msg in "three" "two" "one"
do notif "$msg"
@@ -9,10 +9,8 @@ done
# $2: msg for notification
ring_ring()
{
- time="$(($1*1000*60))"
date '+%R B'
- notif "$time" "$2"
- sleep "$time"s
+ notify-send -w "$(($1*1000*60))" -u critical "pomo" "$2"
}
i="${1-0}"