This is a simple bash script for KDE Plasma (specifically tested on Bazzite/PipeWire) that allows you to cycle through your available audio output devices using a keyboard shortcut. It also sends a desktop notification showing which device is currently active.
Step 1: Save the Script