1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-17 07:10:17 -07:00

add logo and exit

This commit is contained in:
KM4ACK 2022-08-07 09:48:29 -05:00
parent 1f8480d394
commit 69399b92d4

View File

@ -6,6 +6,8 @@
FILE=$HOME/patmenu2/sms/cellproviders.txt FILE=$HOME/patmenu2/sms/cellproviders.txt
MYTEMP=/run/user/$UID/templist.txt MYTEMP=/run/user/$UID/templist.txt
MAIN=$HOME/patmenu2/sms/manage-sms MAIN=$HOME/patmenu2/sms/manage-sms
export MYPATH=$HOME/patmenu2
LOGO=$MYPATH/pmlogo.png
INFO=$(PARSER='OFS="\n" {print $1}' INFO=$(PARSER='OFS="\n" {print $1}'
@ -14,9 +16,17 @@ yad --title="Search Results" --width=1100 --height=500 \
--image $LOGO --window-icon=$LOGO --image-on-top --multiple \ --image $LOGO --window-icon=$LOGO --image-on-top --multiple \
--center --list --text="Carrier List" \ --center --list --text="Carrier List" \
--column Carrier \ --column Carrier \
--button=gtk-close \ --button="Cancel":1 \
--button="Add Carrier":2 > $MYTEMP) --button="Add Carrier":2 > $MYTEMP)
BUT=$? BUT=$?
if [ $BUT = 1 ]; then
$MAIN &
exit
elif [ $BUT = 252 ]; then
exit
fi
sed -i 's/|//g' $MYTEMP sed -i 's/|//g' $MYTEMP
cat $MYTEMP >> $HOME/patmenu2/sms/myphonelist.txt cat $MYTEMP >> $HOME/patmenu2/sms/myphonelist.txt