Skip to content

Instantly share code, notes, and snippets.

@DareFox
Last active January 5, 2023 00:32
Show Gist options
  • Save DareFox/3cd39f562ce71d6a80f3c479dd450097 to your computer and use it in GitHub Desktop.
Save DareFox/3cd39f562ce71d6a80f3c479dd450097 to your computer and use it in GitHub Desktop.
Virtual Audio Cables / Sinks with Pipewire
# Docs: https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Virtual-Devices#coupled-streams
context.modules = [
{ name = libpipewire-module-loopback
args = {
audio.position = [ FL FR ]
capture.props = {
media.class = Audio/Sink
node.name = discord_sink
node.description = "Discord Sink"
}
playback.props = {
target.object = "alsa_output.usb-Logitech_G733_Gaming_Headset-00.analog-stereo"
}
}
}
{ name = libpipewire-module-loopback
args = {
audio.position = [ FL FR ]
capture.props = {
media.class = Audio/Sink
node.name = spotify_sink
node.description = "Spotify Sink"
}
playback.props = {
target.object = "alsa_output.usb-Logitech_G733_Gaming_Headset-00.analog-stereo"
}
}
}
{ name = libpipewire-module-loopback
args = {
audio.position = [ FL FR ]
capture.props = {
media.class = Audio/Sink
node.name = system_sink
node.description = "System Sink"
}
playback.props = {
target.object = "alsa_output.usb-Logitech_G733_Gaming_Headset-00.analog-stereo"
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment