Quickly switch between your audio devices.
Script uses pactl - Pulse Audio Control. It uses the ID of your audio sinks (line 4, 5)
- Move the script to your home directory e.g ~/Scripts/audio_switch.sh
- Give it excecutable permission :
chmod +x audio_switcher.sh
- Bind the script to a hotkey using Settings > Keyboards > Shortcuts > Custom Shortcuts
Tested on Pop_OS 21.10
Based on this thread : https://superuser.com/questions/919033/quickly-change-audio-device-in-kde