Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 25, 2024
1 parent 715f916 commit 6242ca3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup_pipewire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"

0 comments on commit 6242ca3

Please sign in to comment.