Open
Conversation
Add a bar button for switching audio output/input devices with a popup selector. Device type icons (headphones, speakers, HDMI, mic) are determined dynamically from PipeWire node properties instead of hardcoded name matching. Includes settings integration: - Toggle to show/hide the switcher - Comma-separated exclusion list to hide unwanted sinks from the popup New files: - modules/bar/AudioDeviceSwitcher.qml Modified files: - modules/bar/BarContent.qml - config/Config.qml - modules/widgets/dashboard/controls/ShellPanel.qml - modules/widgets/dashboard/controls/SettingsIndex.qml
Owner
|
Nice, please add some screenshots. :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a bar button for switching audio output/input devices with a popup selector.
What was added
New file
modules/bar/AudioDeviceSwitcher.qml-- bar button that:Device type detection
Icons are assigned dynamically from PipeWire node properties, not hardcoded names:
speakerHighdevice.profile.namecontains hdmi or displayportheadphonesdevice.busis usb or bluetooth, or headset/headphone profilefadersnode.virtual=trueorapplication.idmatches easyeffects, carla, jamesdsp, pulseeffectsnode.driver-idtraced to real device, classified by its propertiesspeakermicSettings integration
config/Config.qml-- addedshowAudioDeviceSwitcher(bool, default true) andexcludedAudioSinks(string list, default empty) to the bar adapter.modules/widgets/dashboard/controls/ShellPanel.qml-- added to Bar section:modules/widgets/dashboard/controls/SettingsIndex.qml-- added search entries for "Audio Device Switcher" and "Excluded Audio Sinks".Modified files
modules/bar/BarContent.qml-- addedAudioDeviceSwitchervia Loader in both horizontal and vertical layouts, betweenControlsButtonandBatteryIndicator. Visibility controlled byConfig.bar.showAudioDeviceSwitcher.Demo
2026-04-01T21-22-02-413Z.mp4