1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-18 07:40:11 -07:00

see changelog

This commit is contained in:
KM4ACK 2020-06-01 07:05:36 -05:00
parent ab53950faf
commit ddc5c772fe

View File

@ -136,7 +136,7 @@ done < $TEMP | yad --center --progress --pulsate --auto-close --no-buttons --tex
--text="Please wait while the list is searched.\rThis takes about 30 seconds.\r<b>DON'T CLOSE THIS WINDOW</b>" --text="Please wait while the list is searched.\rThis takes about 30 seconds.\r<b>DON'T CLOSE THIS WINDOW</b>"
INFO=$(PARSER='OFS="\n" {print $1, $2, $3, $4, $5, $6, $7, $9, $11}' INFO=$(PARSER='OFS="\n" {print $1, $2, $3, $4, $5, $6, $7, $9, $11}'
tail -50 $TEMP1 | awk "$PARSER" | \ tail -100 $TEMP1 | awk "$PARSER" | \
yad --title="Search Results" --width=1100 --height=500 \ yad --title="Search Results" --width=1100 --height=500 \
--image $LOGO --window-icon=$LOGO --image-on-top \ --image $LOGO --window-icon=$LOGO --image-on-top \
--center --list --text="Search Results" \ --center --list --text="Search Results" \
@ -201,19 +201,18 @@ echo "80 done"
fi fi
INFO=$(PARSER='OFS="\n" {print $1, $2, $3, $4, $5, $6, $7, $9, $11}' INFO=$(PARSER='OFS="\n" {print $1, $2, $3, $4, $5, $6, $7, $9, $11}'
MYTEMP=/run/user/1000/mytemptestardoplist
tail -50 $OUTFILE | awk "$PARSER" | \ tail -50 $OUTFILE | awk "$PARSER" | \
yad --title="Search Results" --width=1100 --height=500 \ yad --title="Search Results" --width=1100 --height=500 \
--image $LOGO --window-icon=$LOGO --image-on-top \ --image $LOGO --window-icon=$LOGO --image-on-top --multiple \
--center --list --text="Search Results" \ --center --list --text="Search Results" \
--column Call --column Grid --column Dist \ --column Call --column Grid --column Dist \
--column Azm --column Mode --column Speed \ --column Azm --column Mode --column Speed \
--column Dial-Freq \ --column Dial-Freq \
--column Center-Freq --column Shortcut \ --column Center-Freq --column Shortcut \
--button=gtk-close \ --button=gtk-close \
--button="Add Alias":2) --button="Add Alias":2 > $MYTEMP)
BUT=$? BUT=$?
if [ "$BUT" = 2 ];then if [ "$BUT" = 2 ];then
CALL=$(echo $INFO | awk -F "|" '{print $1}') CALL=$(echo $INFO | awk -F "|" '{print $1}')
SC=$(echo $INFO | awk -F "|" '{print $9}') SC=$(echo $INFO | awk -F "|" '{print $9}')
@ -222,7 +221,20 @@ FREQ=$(echo $SC | sed 's/.*=//')
SC=$(echo $SC | sed 's/[?].*$//') SC=$(echo $SC | sed 's/[?].*$//')
fi fi
#check something was selected while read LINE; do
CALL=$(echo $LINE | awk -F "|" '{print $1}')
SC=$(echo $LINE | awk -F "|" '{print $9}')
FREQ=$(echo $SC | sed 's/.*=//')
if [ $RIGCONTROL = 'no' ]; then
SC=$(echo $SC | sed 's/[?].*$//')
fi
jq '.connect_aliases += {'\""$CALL-$BAND"M"-$FREQ"\"' : '\"$SC\"'}' $CONFIG > $TEMP
cp $TEMP $CONFIG
rm $TEMP
done < /run/user/1000/mytemptestardoplist
sudo killall pat
sudo systemctl start pat@$WHO
if [ -z "$CALL" ]; then if [ -z "$CALL" ]; then
yad --title="No Selection" --width=300 --height=100 \ yad --title="No Selection" --width=300 --height=100 \
--image $LOGO --window-icon=$LOGO --image-on-top \ --image $LOGO --window-icon=$LOGO --image-on-top \
@ -231,11 +243,7 @@ FREQ=$(echo $SC | sed 's/.*=//')
$MAIN & $MAIN &
exit exit
fi fi
jq '.connect_aliases += {'\""$CALL-$BAND"M"-$FREQ"\"' : '\"$SC\"'}' $CONFIG > $TEMP
cp $TEMP $CONFIG
rm $TEMP
sudo killall pat
sudo systemctl start pat@$WHO
yad --title="ADDED" --width=300 --height=100 \ yad --title="ADDED" --width=300 --height=100 \
--image $LOGO --window-icon=$LOGO --image-on-top \ --image $LOGO --window-icon=$LOGO --image-on-top \
--center --form --text="Alias added to Pat Winlink\rRefresh Pat Mailbox Window\rto view changes" \ --center --form --text="Alias added to Pat Winlink\rRefresh Pat Mailbox Window\rto view changes" \