summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-10 20:58:37 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-10 20:58:37 +0200
commita01644894f9e490a7055f49d3fa8fc2c3164cc4d (patch)
tree40a67b74d1b8bccea1bca9d19bf08f266eadffd6 /bin/extra
parentee6e9c223b1b73c08801b415c17e12f93e504f2a (diff)
introudcing the -w option of notify-send
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}"