From 8d7b3c4b0fe8574e4cf15e99234ff6587a4ca71b Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 Jan 2025 04:09:56 +0000 Subject: [PATCH] [stdin_to_notis.sh]: Add CLI arg to give notis a heading --- src/stdin_to_notis.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stdin_to_notis.sh b/src/stdin_to_notis.sh index 604832b..2901e7d 100755 --- a/src/stdin_to_notis.sh +++ b/src/stdin_to_notis.sh @@ -4,5 +4,10 @@ while read line do - notify-send "$line" + if [ -z "$1" ] + then + notify-send "$line" + else + notify-send "$1" "$line" + fi done