feat(audio-switcher): support input ports - #287
Merged
ItsLemmy merged 1 commit intoAug 8, 2026
Conversation
blackbartblues
force-pushed
the
feat/audio-switcher-input-ports
branch
from
August 6, 2026 20:15
5bafa36 to
71fb7bf
Compare
blackbartblues
marked this pull request as ready for review
August 6, 2026 20:40
spiros132
force-pushed
the
main
branch
5 times, most recently
from
August 7, 2026 22:57
8d53319 to
d59cdac
Compare
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.
Plugin
blackbartblues/audio-switcherplugin.toml)What it does
Adds first-class support for audio input ports. Audio Switcher now shows the active hardware port (for example, an internal or headset microphone), lets users select an available port from the panel, and includes available ports when cycling inputs.
This fixes the behavior described in #239. The plugin version is bumped from 0.4.0 to 0.5.0.
External dependencies
pactl: enumerates audio sources and ports, selects the active source port, changes defaults, and moves recording/playback streams.bluetoothctl: discovers, connects, and disconnects Bluetooth audio devices.sleep: implements the short retry delay while waiting for Bluetooth audio endpoints.The new input-port behavior does not add an external dependency.
Testing
lua audio-switcher/tests/input_ports_test.luapython3 .github/workflows/scripts/validate-plugins.py— 74 manifests validatedpython3 -m unittest discover -s .github/workflows/scripts -p 'test_*.py'— 56 tests passednoctalia plugins lint audio-switcher— 0 errors, 0 warningsall translation JSON files checked with
jqTested on Niri
Tested on Hyprland
Tested on Sway
Tested on another compositor:
Noctalia version tested against: Runtime test pending; implementation rebased onto community-plugins
mainatf5bd62ePlugin API level: 15
Screenshots / Videos
The existing panel screenshot is available in
audio-switcher/screenshots/panel.webp. A screenshot showing the new input-port selector is pending before the draft is marked ready for review.Checklist
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows the README template, documents every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.thumbnail.webpwith the thumbnail generator.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
licensedeclared inplugin.toml.