Thanks for the netcat suggestion. "-i1" is not needed, and "N" is invalid now. This works on Linux using Wayland. Wayland apparently doesn't support xdotools.
With
gqrx-scan
extracted to the /home/$USER folder and working along with Gqrx
bookmarks tagged, the bash script code at the bottom will:
- Open Gqrx.
- Start the SDR.
- Scan frequencies with gqrx-scan.
I have multiple versions of
this bash script saved as Aircraft.sh, EMS.sh, Marine.sh,
and so on. Change "Aircraft" in Line 10 with the tag of the frequencies
you want to scan. Make sure to make each .sh bash script file you
create executable (
I use Step 2 here). The following is "Aircraft.sh":
#!/bin/bash
# Open Gqrx.
gqrx &
sleep 5
# Start SDR.
echo "U DSP 1" | nc localhost 7356
sleep 5
# Start scanning frequencies with gqrx-scan (
https://gitlab.com/khaytsus/gqrx-scan).
cd /home/$USER/gqrx-scan-master/
./gqrx-scan --delaylevel=-50 --delaytime 10 --pause 0.25 --tags "Aircraft" --type gqrxfile --wait