Small audio output switcher script
Small audio output switcher script

pastebin.com
select_audio_sink.py - Pastebin.com

I use this in Hyprland to quickly switch between the headphone jack and a USB wireless dongle. Executing the script will show a dialog that lists all available audio sinks, with the active sink selected. It requires pulseaudio
or pipewire-pulse
for the pactl
program, and kdialog
for the dialog.