mirror of
https://github.com/km4ack/pi-scripts
synced 2026-08-13 17:52:05 -04:00
Create get-freq
This commit is contained in:
parent
510ada2ade
commit
f313393e63
1 changed files with 22 additions and 0 deletions
22
conky/get-freq
Normal file
22
conky/get-freq
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue