alsa-info.sh: add PipeWire daemon detection

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-05 18:20:55 +01:00
parent f67020abcf
commit 30809f395e

View file

@ -425,6 +425,7 @@ get_alsa_library_version
ALSA_UTILS_VERSION=$(amixer -v | awk '{ print $3 }') ALSA_UTILS_VERSION=$(amixer -v | awk '{ print $3 }')
ESDINST=$(command -v esd) ESDINST=$(command -v esd)
PWINST=$(command -v pipewire)
PAINST=$(command -v pulseaudio) PAINST=$(command -v pulseaudio)
ARTSINST=$(command -v artsd) ARTSINST=$(command -v artsd)
JACKINST=$(command -v jackd) JACKINST=$(command -v jackd)
@ -555,6 +556,13 @@ echo "" >> $FILE
echo "!!Sound Servers on this system" >> $FILE echo "!!Sound Servers on this system" >> $FILE
echo "!!----------------------------" >> $FILE echo "!!----------------------------" >> $FILE
echo "" >> $FILE echo "" >> $FILE
if [[ -n $PWINST ]];then
[[ $(pgrep '^(.*/)?pipewire$') ]] && PWRUNNING="Yes" || PWRUNNING="No"
echo "PipeWire:" >> $FILE
echo " Installed - Yes ($PWINST)" >> $FILE
echo " Running - $PWRUNNING" >> $FILE
echo "" >> $FILE
fi
if [[ -n $PAINST ]];then if [[ -n $PAINST ]];then
[[ $(pgrep '^(.*/)?pulseaudio$') ]] && PARUNNING="Yes" || PARUNNING="No" [[ $(pgrep '^(.*/)?pulseaudio$') ]] && PARUNNING="Yes" || PARUNNING="No"
echo "Pulseaudio:" >> $FILE echo "Pulseaudio:" >> $FILE