dotfiles/dot_local/bin/executable_pipewire-launcher

15 lines
435 B
Bash

#!/bin/bash
# Kill any running pipewire processes
killall -q wireplumber & killall -q pipewire-pulse & killall -q pipewire
# Wait for processes to stop
while pgrep -u $UID -x wireplumber >/dev/null; do sleep 1; done
while pgrep -u $UID -x pipewire >/dev/null; do sleep 1; done
while pgrep -u $UID -x pipewire-pulse >/dev/null; do sleep 1; done
# Launch pipewire
/usr/bin/wireplumber &
/usr/bin/pipewire &
/usr/bin/pipewire-pulse &