Ticket #706 (closed enhancement: fixed)
[PATCH] Automatically switch to new devices
| Reported by: | mterry | Owned by: | lennart |
|---|---|---|---|
| Milestone: | 1.0 | Component: | daemon |
| Keywords: | Cc: | nekohayo@… |
Description
I was thinking it would be nice to automatically switch to a new device if the user connected one. My primary use case was connecting new Bluetooth devices.
When you plug in new (jack) headphones, those automatically switch. So Bluetooth seemed like it should work the same way. I suppose the same holds true for HDMI (or whatever devices provide sinks/sources).
Attached is my naive attempt at doing so. It provides a new module switch-on-connect. When a new source or sink is made available (during the session, not during startup), it makes it the new default and switches outputs/inputs from the previous default to the new one. I'd welcome feedback on the approach or implementation.

