From bfbe020ee829aa0f78f3a4e955d3ed834a5d9d54 Mon Sep 17 00:00:00 2001 From: Jonathan Matthews <54287723+inthreedee@users.noreply.github.com> Date: Wed, 13 Nov 2019 16:26:29 -0500 Subject: [PATCH] Improve chkboot-desktopalert - Include chkboot in the zenity alert title to indicate the message's origin - Add a warning icon - Add width to the second notification to fix narrow, hard to read text --- notification/chkboot-desktopalert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notification/chkboot-desktopalert b/notification/chkboot-desktopalert index 0991200..df6e504 100755 --- a/notification/chkboot-desktopalert +++ b/notification/chkboot-desktopalert @@ -15,8 +15,8 @@ NOTIFICATION="This notification will continue to appear until you either run chk if [ -s $chgfile ]; then if [ -x $ZENITY ]; then - cat $chgfile | $ZENITY --title "ALERT: Boot changes" --text-info --width 550 --height 300 - $ZENITY --title "chkboot" --info --text="$NOTIFICATION" + cat $chgfile | $ZENITY --title="ALERT: chkboot has detected boot changes" --window-icon=warning --text-info --width=550 --height=300 + $ZENITY --title "chkboot" --info --text="$NOTIFICATION" --width=400 elif [ -x $XMESSAGE ]; then cat $chgfile | $XMESSAGE -default okay -file - $XMESSAGE -default okay $NOTIFICATION