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