summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/notify4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/notify b/.local/bin/notify
index a87d3ab..fce103d 100755
--- a/.local/bin/notify
+++ b/.local/bin/notify
@@ -12,7 +12,9 @@ then
else
t="$(echo "$NOTIFY_LONG" | tr a-z A-Z)"
s="$1"
- b="$2."
+ b="$2"
+ c="${b##*[![:punct:]]}"
+ [ -z "$c" ] && b="$2."
shift 2
notify-send "$@" -a "$t" "$s" "$b"
fi