From 7dcbdc08eee84b33dfba7d7982f3627dcba8e4db Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 1 Apr 2020 15:54:47 +0100 Subject: [PATCH] show window title in notification --- src/date-show | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/date-show b/src/date-show index 62d2c08..5430886 100755 --- a/src/date-show +++ b/src/date-show @@ -1,5 +1,10 @@ #!/bin/sh -notify-send -u low "$(date +" %R -- %A %d %B %Y")" +_title="$(xtitle)" +if [ -z "$_title" ] ; then + _title="Why For No Title?" +fi + +notify-send -u low "'$_title'" "$(date +" %R -- %A %d %B %Y")"