Script to restart Pipewire if it starts bugging out

From Pengwings
Revision as of 14:53, 13 February 2026 by Theleruby (talk | contribs) (Created page with " 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-se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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