Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Forked from f4iey/keyer.sh
Created April 20, 2023 18:29
Show Gist options
  • Save shaposhnikoff/95efcbf44f7bef69176c3ff24ee462fa to your computer and use it in GitHub Desktop.
Save shaposhnikoff/95efcbf44f7bef69176c3ff24ee462fa to your computer and use it in GitHub Desktop.
Simple script to use ICOM IC-705 internal CW keyer via hamlib
#!/bin/zsh
#
# Script to get simple cw macros or free typing on the ICOM IC-705
#
# Make sure CI-V Transceive is ON and USB Echo Back is OFF
callsign=TM22YOTA
echo -e "Welcome. Press CTRL+C to exit...\n"
while true
do
echo "CW: "
read text
echo -e "\n"
if [[ "$text" == *: ]]
then
echo "$text 5NN"
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "${text%:*} 5NN"
continue
fi
case $text in
"cq" | "CQ" | "c")
echo "CQ CQ DE $callsign $callsign"
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "cq cq de $callsign $callsign"
;;
"r" | "R")
echo 5NN
rigctl -m 3085 -r /home/f4iey/rig-pty1 b 5NN
;;
"tu" | "TU" | "t")
echo "TU $callsign"
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "tu $callsign"
;;
"call" | "CALL" | "s")
echo $callsign
rigctl -m 3085 -r /home/f4iey/rig-pty1 b $callsign
;;
"rr73" | "RR73" | "rr")
echo "RR 5NN 73 TU EE"
rigctl -m 3085 -r /home/f4iey/rig-pty1 b "rr 5NN 73 tu ee"
;;
*)
rigctl -m 3085 -r /home/f4iey/rig-pty1 b $text
;;
esac
echo -e "\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment