Last active
July 10, 2022 20:19
-
-
Save c5e3/3bff846e5bcfee282ed33783646131c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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