diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-10 20:58:37 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-10 20:58:37 +0200 | 
| commit | a01644894f9e490a7055f49d3fa8fc2c3164cc4d (patch) | |
| tree | 40a67b74d1b8bccea1bca9d19bf08f266eadffd6 | |
| parent | ee6e9c223b1b73c08801b415c17e12f93e504f2a (diff) | |
introudcing the -w option of notify-send
| -rwxr-xr-x | bin/extra/pomo | 6 | 
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}"  | 
