Audio PipeWire
Context: $ARGUMENTS
Quick start
- List audio graph objects: → Step 1 (
pwctl.py list) - Dump the whole graph as JSON: → Step 2 (
pwctl.py dump) - Render a compact ASCII graph: → Step 2 (
pwctl.py graph) - Connect app A → device B: → Step 3 (
pwctl.py link <src> <dst>) - Play / record a file: → Step 4 (
pwctl.py play/record) - Create a virtual cable (loopback): → Step 5 (
pwctl.py loopback) - Watch DSP load / xruns: → Step 6 (
pwctl.py top) - Change default sink/source: → Step 7 (
pwctl.py metadata-set)
When to use
- User is on Linux and wants to route audio between apps or devices.
- User asks about PipeWire,
pw-*commands, or WirePlumber. - User needs to list/filter nodes and ports, create port-level links, or set the
default sink/source.
- User asks how to create a virtual audio device on Linux — use
pw-loopback. - User wants to debug audio latency or xruns on Linux.
Not for: macOS (use audio-coreaudio), Windows (use audio-wasapi), or JACK-specific
workflows (use audio-jack — but note that on modern Linux, jackd is almost always
the PipeWire libjack shim anyway).
Step 1 — List objects
Probe the current graph for every node/port/link/device/module/metadata object:
uv run ${CLAUDE_SKILL_DIR}/scripts/pwctl.py list
Filter by type (keeps output manageable on busy desktops):
uv run ${CLAUDE_SKILL_DIR}/scripts/pwctl.py list --kind Node
uv run ${CLAUDE_SKILL_DIR}/scripts/pwctl.py list --kind Port
uv run ${CLAUDE_SKILL_DIR}/scripts/pwctl.py list --kind Link