/pipewire-audio:route-on-device-connectfrom pipewire-audio
Set up combined-sink / fan-out output routing — e.g. "when the Jabra is connected, also play audio through it without changing the default speakers". Use for the case the GUI can't handle: simultaneous output to multiple sinks, or conditional routing tied to device connect state.
Ships in pipewire-audio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pipewire's GUI mixers (pavucontrol, plasma-pa) only let you pick one default output. For "play to A and B" or "when device X connects, also send audio there", you need a combined sink or a Wireplumber rule.
Create a Pipewire combined sink that fans out to multiple physical sinks. Define it in ~/.config/pipewire/pipewire.conf.d/51-combine-sink.conf:
context.modules = [
{ name = libpipewire-module-combine-stream
args = {
combine.mode = sink
node.name = combined_speakers_and_jabra
node.description = "Speakers + Jabra"
combine.props = {
audio.position = [ FL FR ]
}
stream.props = {}
stream.rules = [
{
matches = [
{ node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo" }
{ node.name = "~alsa_output.usb-Jabra.*" }
]
actions = { create-stream = {} }
}
]
}
}
]
Then systemctl --user restart pipewire wireplumber and select the combined sink as default with wpctl set-default.
Use Wireplumber Lua scripting (~/.config/wireplumber/scripts/) to react to a device appearing and call wpctl set-default or move existing streams. Heavier — only reach for this if the combined-sink approach can't model the desired behaviour.
node.name for each device with list-audio-devices.systemctl --user restart pipewire wireplumber.wpctl status. Set it default. Disconnect the device and confirm Pipewire degrades gracefully (the combined sink will lose one stream but keep playing through the remaining one).node.name — the regex match in the example handles this; verify after connecting.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/complementary-pluginsList and install plugins that complement pipewire-audio: easy-effects-manager, home-audio. Use on "related plugins"./delete-preference-ruleRemove a Wireplumber preference rule — by filename, by matched device name, or by description. Restarts Wireplumber so the change takes effect immediately. Use when a rule is no longer wanted or is causing wrong-device routing./dictation-mic-tuneDiagnose and tune a microphone for speech-to-text dictation — evaluate level, apply RNNoise/noise-cancellation virtual source, set a higher software gain, and optionally persist the noise-cancelled source as the default. Use when the user dictates frequently and wants the mic to "just work" for STT.pipewire-audio@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin pipewire-audio