Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
Last active July 19, 2023 08:09
Show Gist options
  • Save GamePlayer-8/7314d8ee849a5c6b2bf496af92d5e4c8 to your computer and use it in GitHub Desktop.
Save GamePlayer-8/7314d8ee849a5c6b2bf496af92d5e4c8 to your computer and use it in GitHub Desktop.
Launch-pipewire.sh
#!/bin/sh
export PIPEWIRE_RUNTIME=<PATH>
mkdir "$PIPEWIRE_RUNTIME"/{runtime,logs} 2>/dev/null 3>&2
export DISPLAY="127.0.0.1:0.0"
export XDG_RUNTIME_DIR="$PIPEWIRE_RUNTIME"/runtime
pipewire -c "$PIPEWIRE_RUNTIME"/pipewire.conf >"$PIPEWIRE_RUNTIME"/logs/pipewire.log 2>&1 3>&1 &
pipewire_pid=$!
echo "$pipewire_pid" > "$PIPEWIRE_RUNTIME"/runtime/pipewire.pid
pipewire-pulse -c "$PIPEWIRE_RUNTIME"/pipewire-pulse.conf >"$PIPEWIRE_RUNTIME"/logs/pulse.log 2>&1 3>&1 </dev/null &
pipewire-pulse_pid=$!
echo "$pipewire_pid" > "$PIPEWIRE_RUNTIME"/runtime/pipewire-pulse.pid
wireplumber -c "$PIPEWIRE_RUNTIME"/wireplumber.conf >"$PIPEWIRE_RUNTIME"/logs/wireplumber.log 2>&1 3>&1 &
wireplumber_pid=$!
echo "$wireplumber_pid" > "$PIPEWIRE_RUNTIME"/runtime/wireplumber.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment