/pipewire-audio:microphone-preference-rulesfrom pipewire-audio
Create persistent Wireplumber rules that auto-prefer specific microphones when connected — e.g. "if the Jabra headset is connected, always make it the default mic; otherwise fall back to the laptop array". Use when the user is tired of manually switching mics.
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.
Write persistent device-priority rules so Wireplumber automatically picks the right mic without manual switching after every reconnect.
Wireplumber Lua/Spa-JSON config (Pipewire ≥ 0.4.x with Wireplumber 0.5+):
~/.config/wireplumber/wireplumber.conf.d/
Use a single file per logical rule set (e.g. 51-mic-priority.conf) so rules are easy to find and remove.
monitor.alsa.rules = [
{
matches = [
{
node.name = "alsa_input.usb-Jabra_Jabra_Evolve2_85-00.mono-fallback"
}
]
actions = {
update-props = {
priority.session = 2000
priority.driver = 2000
}
}
}
{
matches = [
{
node.name = "alsa_input.pci-0000_00_1f.3.analog-stereo"
}
]
actions = {
update-props = {
priority.session = 100
}
}
}
]
Higher priority.session wins. Wireplumber re-evaluates default device on connect/disconnect.
node.name of each mic the user wants to rank — call list-audio-devices and wpctl inspect <id>.~/.config/wireplumber/wireplumber.conf.d/. Use a numeric prefix (e.g. 51-) so it loads after the defaults.systemctl --user restart wireplumber
wpctl status — the preferred mic should now be marked default when connected; disconnect it and confirm the fallback takes over.node.name is the most stable single key — but if a USB hub renames the device on reconnect, fall back to matching on device.product.name or device.serial.wpctl inspect to confirm.matches.*.node.name = "~alsa_input.usb-Jabra.*" for a regex match.Bluetooth headsets switch between A2DP (high-quality output, no mic) and HSP/HFP (mic + low-quality output). The mic only exists in HSP/HFP profile — make sure the rule matches the HSP/HFP node.name, not the A2DP one.
list-preference-rules — show what rules are currently active.delete-preference-rule — remove a rule by file or by matched device.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