Skip to content

Instantly share code, notes, and snippets.

@c5e3
Last active July 10, 2022 20:19
Show Gist options
  • Save c5e3/3bff846e5bcfee282ed33783646131c8 to your computer and use it in GitHub Desktop.
Save c5e3/3bff846e5bcfee282ed33783646131c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
id=$(pactl list sink-inputs | grep -e 'application.name = "GQRX"' -e 'Sink Input #' | grep 'application.name = "GQRX"' -B1 | head -n1 | sed -e 's/Sink Input #//g')
unmute(){
pactl set-sink-input-mute $id 0
}
trap "unmute" INT
echo "Exit with CTRL-C
"
pactl set-sink-input-mute $id 1
nc -l -u 7355 | padsp -- dsd -i - -o /dev/dsp
trap SIGINT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment