diff options
Diffstat (limited to '.config/service/pipewire-loopback/run')
-rwxr-xr-x | .config/service/pipewire-loopback/run | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/service/pipewire-loopback/run b/.config/service/pipewire-loopback/run new file mode 100755 index 0000000..f475602 --- /dev/null +++ b/.config/service/pipewire-loopback/run @@ -0,0 +1,10 @@ +#!/bin/sh +exec 2>&1 +. "$HOME/.config/common_service.sh" + +sv check pipewire >/dev/null || exit 1 + +chpst -e "$TURNSTILE_ENV_DIR" pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-sink channel_map=surround-51 || exit $? +chpst -e "$TURNSTILE_ENV_DIR" pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name="my-source" channel_map=front-left,front-right || exit $? +chpst -e "$TURNSTILE_ENV_DIR" pactl load-module module-null-sink media.class=Audio/Duplex sink_name="Main thing" audio.position=FL,FR,RL,RR || exit $? +exec pause |