mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-14 08:10:52 -05:00
22 lines
600 B
Text
22 lines
600 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Start xdg-desktop-portal
|
||
|
/usr/lib/xdg-desktop-portal -r &
|
||
|
|
||
|
# Wait for xdg-desktop-portal
|
||
|
while ! pgrep -u $UID -f xdg-desktop-portal >/dev/null; do sleep 1; done
|
||
|
|
||
|
# 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 &
|
||
|
|