show window title in notification

This commit is contained in:
Ray Elliott 2020-04-01 15:54:47 +01:00
commit 7dcbdc08ee

View file

@ -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")"