From a01644894f9e490a7055f49d3fa8fc2c3164cc4d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 20:58:37 +0200 Subject: introudcing the -w option of notify-send --- bin/extra/pomo | 6 ++---- 1 file 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}" -- cgit v1.2.3