changes to pipewire.sh
parent
e95bc0534b
commit
35fbdca3bd
|
@ -3,9 +3,6 @@
|
||||||
#programs to run to initialize pipewire, separated by spaces
|
#programs to run to initialize pipewire, separated by spaces
|
||||||
PROGS="pipewire pipewire-pulse wireplumber"
|
PROGS="pipewire pipewire-pulse wireplumber"
|
||||||
|
|
||||||
#program to check to see if script is already running, should be one of the above programs
|
|
||||||
CHK_PROG="wireplumber"
|
|
||||||
|
|
||||||
trap 'kill' 2
|
trap 'kill' 2
|
||||||
trap 'kill' 15
|
trap 'kill' 15
|
||||||
|
|
||||||
|
@ -17,13 +14,12 @@ kill() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$(pgrep $CHK_PROG)" ]; then
|
|
||||||
|
|
||||||
for PRG in $PROGS
|
for PRG in $PROGS
|
||||||
do
|
do
|
||||||
"$PRG" &
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
wait
|
[ -z "$(pgrep "^$PRG\$")" ] && "$PRG" &
|
||||||
fi
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
Loading…
Reference in New Issue