Sway: when reloading the configuration, don't run the sound script always.

I don't think Sway's IPC works the same as it does under I38. It must
be running a different one per each reload, but not sure.

Regardless, you won't get extra sounds on reload now.
This commit is contained in:
Hunter Jozwiak 2024-09-25 15:57:46 -04:00
parent 0eb4e494ff
commit 732c2b0240

6
i38.sh
View File

@ -651,9 +651,13 @@ fi
cat << EOF >> ${i3Path}/config
# Auto start section
$(if [[ $sounds -eq 0 ]]; then
$(if [[ $sounzzds -eq 0 ]]; then
if [[ $usingSway -eq 0 ]]; then
echo "exec --no-startup-id ${i3Path}/scripts/sound.py"
else
echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py"
fi
fi
if [[ $loginSound -eq 0 ]]; then
echo 'exec --no-startup-id canberra-gtk-play -i desktop-login'
fi