diff --git a/sms/remove-carrier b/sms/remove-carrier index 91f794d..f227414 100755 --- a/sms/remove-carrier +++ b/sms/remove-carrier @@ -6,17 +6,27 @@ 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="Current Carrier List" \ --column Carrier \ - --button=gtk-close \ + --button="Cancel":1 \ --button="Remove Carrier":2 > $MYTEMP) BUT=$? + +if [ $BUT = 1 ]; then +$MAIN & +exit +elif [ $BUT = 252 ]; then +exit +fi + sed -i 's/|//g' $MYTEMP while read -r line; do