2025-03-14 21:59:59 -06:00
|
|
|
# pw-loopback
|
|
|
|
|
|
|
|
|
|
> Create loopback devices in PipeWire.
|
|
|
|
|
> More information: <https://docs.pipewire.org/page_man_pw-loopback_1.html>.
|
|
|
|
|
|
|
|
|
|
- Create a loopback device with the default loopback behavior:
|
|
|
|
|
|
|
|
|
|
`pw-loopback`
|
|
|
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the speakers:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{media.class=Audio/Sink}}'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the microphone:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`pw-loopback {{[-o|--playback-props]}} '{{media.class=Audio/Source}}'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a dummy loopback device that doesn't automatically connect to anything:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{media.class=Audio/Sink}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source}}'`
|
|
|
|
|
|
|
|
|
|
- Force the nodes to have specific ports:
|
|
|
|
|
|
|
|
|
|
`pw-loopback {{[-m|--channel-map]}} '[{{FL FR}}]'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the speakers and swaps the left and right channels between the sink and source:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{media.class=Audio/Sink audio.position=[FL FR]}}' {{[-o|--playback-props]}} '{{audio.position=[FR FL]}}'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{audio.position=[FR FL]}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source audio.position=[FL FR]}}'`
|
2026-06-12 17:51:25 -06:00
|
|
|
|
|
|
|
|
- Give the loopback node a name:
|
|
|
|
|
|
|
|
|
|
`pw-loopback {{[-n|--name]}} "{{node_name}}"`
|