commit 5d3563d266134f2a41c3314af550d43f4d861723 parent 8b8a4b036ff84dd75ffdf070f39bdf6c26fecbfa Author: hhvn <dev@hhvn.uk> Date: Wed, 28 Jul 2021 20:46:03 +0100 .s/b/notify-send: wrapper for herbe Diffstat:
A | .scripts/bin/notify-send | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/.scripts/bin/notify-send b/.scripts/bin/notify-send @@ -0,0 +1,15 @@ +#!/bin/sh +# based upon: https://raw.githubusercontent.com/dudik/herbe/24557245869662e1885f286037ecc37038a5f791/notify-send + +while [ $# -ne 0 ] && [ ${narg:-0} -ne 1 ] +do + case "$1" in + --urgency|--expire-time|--icon|--category) shift 2 ;; + --) shift; narg=1 ;; + *) + echo "$1" | grep '^-[utich]*$' >/dev/null && + shift 2 || narg=1 + esac +done + +nohup herbe "$@" >/dev/null 2>/dev/null &