KDE, change sound to HDMI Headphones Speaker via script?

Hi,

on Leap KDE, changing sound output is still too many clicks away.
I have heard that situation will improve in later KDE versions (LEAP) , but haven’t seen it till now n Leap

so I wounder, this is for sure just some simple dbus commands, or something similar

if there is a command to change the output device, I could put them on keyboard shortcuts or do something else more comfortable then the current situation

In xfce there is a pulseaudio plugin that you can put in the panel that makes it easier
to switch the sound output.
Wonder if there is a the same one in plasma.

if there is a command to change the output device, I could put them on keyboard shortcuts or…

Get the sink names via

pactl list sinks

then create keyboard shortcuts to execute the required commands eg

pactl set-sink-port 1 analog-output-speaker

thanks!
will try to wrap this + greping form pactl info the default, than it should be easy to make something everyone at home can use