diff --git a/setup_pipewire.sh b/setup_pipewire.sh index e81b1bf..436d9b0 100644 --- a/setup_pipewire.sh +++ b/setup_pipewire.sh @@ -12,6 +12,8 @@ USER="pi" SOUND_SERVER="pipewire" + +echo "Adding user to audio groups..." # Add user to audio group sudo usermod -aG audio $USER @@ -24,8 +26,11 @@ fi sudo usermod -aG pipewire $USER # Enable lingering for the user -sudo loginctl enable-linger $USER +echo "Enabling lingering for the user ..." +#sudo loginctl enable-linger $USER + +echo "Creating .asoundrc ..." echo -e "pcm.!default $SOUND_SERVER\nctl.!default $SOUND_SERVER" > /home/$USER/.asoundrc sudo chown $USER:$USER /home/$USER/.asoundrc echo ".asoundrc file generated for $USER"