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:
parent
0eb4e494ff
commit
732c2b0240
6
i38.sh
6
i38.sh
@ -651,8 +651,12 @@ fi
|
|||||||
|
|
||||||
cat << EOF >> ${i3Path}/config
|
cat << EOF >> ${i3Path}/config
|
||||||
# Auto start section
|
# 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"
|
echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $loginSound -eq 0 ]]; then
|
if [[ $loginSound -eq 0 ]]; then
|
||||||
echo 'exec --no-startup-id canberra-gtk-play -i desktop-login'
|
echo 'exec --no-startup-id canberra-gtk-play -i desktop-login'
|
||||||
|
Loading…
Reference in New Issue
Block a user