Create get-freq

This commit is contained in:
KM4ACK 2019-12-22 20:15:50 -06:00 committed by GitHub
parent 510ada2ade
commit f313393e63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
conky/get-freq Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
#get freq of radio to display in conky
#20191217 km4ack
source $HOME/patmenu/config
MAIN () {
FREQ=$($RIG f)
FREQCH=$(echo $FREQ | grep error)
if [ -z "$FREQCH" ]
then
echo $FREQ
else
MAIN
fi
}
MAIN