Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide inactive devices from the list #19

Open
joestringer opened this issue Aug 26, 2023 · 1 comment
Open

Hide inactive devices from the list #19

joestringer opened this issue Aug 26, 2023 · 1 comment

Comments

@joestringer
Copy link

I use an HDMI output which for some reason has three subdevices attached, but only one of them is ever used for audio output through HDMI:

$ aplay -l
...
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Recently after switching to pipewire it seems that in the configuration settings of my desktop environment, it automatically detects that device 4 and device 5 are "inactive" and hides them from the default audio configuration view. However, the plasma audio device switcher still shows these extra devices. If I switch output to them, the audio output automatically switches away from them.

It would be neat if this widget could detect when the underlying devices are inactive and hide them by default (optionally with a checkbox to un-hide them in the configuration menu for the widget)

@denilsonsa
Copy link

Hi! I had this very specific need, and I ended up creating my own fork: https://github.com/denilsonsa/plasma-audio-device-switcher And it filters out inactive devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants