From 132d7222df83bbf7dd7713c6ab35ffd8a8fad8f4 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 7 Aug 2022 09:54:40 -0500 Subject: [PATCH] add logo and exit --- sms/current-carriers | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sms/current-carriers b/sms/current-carriers index bffe6b3..28d3d53 100755 --- a/sms/current-carriers +++ b/sms/current-carriers @@ -6,16 +6,20 @@ FILE=$HOME/patmenu2/sms/myphonelist.txt MYTEMP=/run/user/$UID/templist.txt MAIN=$HOME/patmenu2/sms/manage-sms +export MYPATH=$HOME/patmenu2 +LOGO=$MYPATH/pmlogo.png INFO=$(PARSER='OFS="\n" {print $1}' tail -300 $FILE | awk "$PARSER" | \ -yad --title="Search Results" --width=1100 --height=500 \ +yad --title="Search Results" --width=600 --height=500 \ --image $LOGO --window-icon=$LOGO --image-on-top --multiple \ --center --list --text="Carrier List" \ --column Carrier \ - --button=gtk-close \ --button=gtk-ok) BUT=$? +if [ $BUT = 252 ]; then +exit +fi $MAIN \ No newline at end of file