Script to restart Pipewire if it starts bugging out
From Pengwings
sudo vim /usr/local/bin/fixaudio
#!/bin/bash
echo Attempting to restart the audio stack
if pgrep -x "easyeffects" > /dev/null
then
echo easyeffects is running, killing it
easyeffects -q
sleep 3
else
echo easyeffects is not currently running
fi
echo Restarting pipewire
systemctl --user restart pipewire
sleep 2
echo Restarting fluidsynth
systemctl --user restart fluidsynth
sleep 2
echo Restarting easyeffects
easyeffects --gapplication-service & disown
sleep 2
echo Done
Run it like this:
fixaudio