mirror of
https://github.com/km4ack/patmenu2.git
synced 2025-05-16 14:50:13 -07:00
add logo and exit
This commit is contained in:
parent
a0bc929207
commit
132d7222df
@ -6,16 +6,20 @@
|
|||||||
FILE=$HOME/patmenu2/sms/myphonelist.txt
|
FILE=$HOME/patmenu2/sms/myphonelist.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}'
|
||||||
|
|
||||||
tail -300 $FILE | awk "$PARSER" | \
|
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 \
|
--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=gtk-ok)
|
--button=gtk-ok)
|
||||||
BUT=$?
|
BUT=$?
|
||||||
|
if [ $BUT = 252 ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
$MAIN
|
$MAIN
|
Loading…
x
Reference in New Issue
Block a user