Audio Port Switcher / Conmutador de Puertos de Audio
June 29, 2026 · View on GitHub
[English]
A simple widget for Dank Material Shell (DMS) to switch the microphone input between your laptop's internal mic and a headset mic with one click.
Features
- Automatic source detection: It finds your active PipeWire source device automatically, no hardcoded IDs needed.
- Instant updates: If you plug or unplug your headset, the bar icon updates right away.
- Native DMS look: Hover effects, rounded corners, and click actions work natively with the rest of your bar widgets.
System Requirements
For the widget to work correctly, your system must have:
- PipeWire (with active
pipewire-pulse) - libpulse (which provides the
pactlcommand)
How to install
- Copy the
audioPortSwitcherfolder to~/.config/DankMaterialShell/plugins/. - Add
"audioPortSwitcher"to theleftWidgets,centerWidgets, orrightWidgetslist in yoursettings.jsonfile.
[Español]
Un widget simple para Dank Material Shell (DMS) que te permite cambiar la entrada de micrófono entre el mic interno de la notebook y el del auricular con un solo clic.
Características
- Detección automática: Encuentra la entrada activa de PipeWire automáticamente, sin IDs fijas en el código.
- Actualización al instante: Si conectás o desconectás el auricular, el icono de la barra cambia en el acto.
- Diseño nativo de DMS: El efecto hover, los bordes redondeados y el clic se integran de forma nativa con los otros widgets de la barra.
Requisitos del sistema
Para que el widget funcione correctamente, tu sistema debe contar con:
- PipeWire (con
pipewire-pulseactivo) - libpulse (que provee el comando
pactl)
Cómo instalarlo
- Copiá la carpeta
audioPortSwitcheren~/.config/DankMaterialShell/plugins/. - Agrega
"audioPortSwitcher"a la lista deleftWidgets,centerWidgetsorightWidgetsen tu archivosettings.json.
Previews / Previsualizaciones
| Laptop Mic / Mic de Laptop | Headset Mic / Mic de Auricular |
|---|---|
![]() | ![]() |
| Settings / Ajustes |
|---|
![]() |
| Notification / Notificacion |
|---|
![]() |



