Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source

pw-loopback

  • Tool for creating loopback devices in pipewire.
    More information: <https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Virtual-Devices>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pw-loopback --capture-props='{{audio.position=[FR FL]}}' --playback-props='{{media.class=Audio/Source audio.position=[FL FR]}}'

click the source code to copy