Bug 480493

Summary: Associate an audio output with a display configuration
Product: [Unmaintained] plasma-pa Reporter: Martin Collins <kdebugs>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: isma.af, kdebugs, me, nate, nowrep, sitter
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Collins 2024-01-29 15:18:18 UTC
I carry my laptop between home and work, and plug it into USB-C docks with all the peripherals attached, with different monitors in each place.
I have recently upgraded my home setup with an AV receiver so video and sound now both go out via HDMI. At work sound still goes out via the analog port.

Now when I plug in I have to manually change the audio output every time.

So I wonder if an audio output could be associated with a display configuration so the switch is automatic.
Comment 1 Harald Sitter 2024-02-12 00:15:18 UTC
I fear that is not going to happen. You may find this scriptable using pactl and kscreen-doctor or similar tools.
Comment 2 Martin Collins 2024-02-13 15:02:39 UTC
Looking into that I find that just getting the name of the connected monitor is rather involved. Is there a simple way? How does kscreen do it?