From a339aee2ab17242670f2fa31fe386ee9a8cb966b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 23 Nov 2022 16:15:25 -0500 Subject: [PATCH] Added sound settings. --- i38.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i38.sh b/i38.sh index d040350..9bb6ae7 100755 --- a/i38.sh +++ b/i38.sh @@ -143,6 +143,8 @@ brlapi=1 if [[ $dex -eq 1 ]]; then brlapi=$(yesno "Do you want to use a braille display with Orca?") fi +sounds=1 +sounds=$(yesno "Do you want window event sounds?") if [[ -d "${i3Path}" ]]; then yesno "This will replace your existing configuration at ${i3Path}. Do you want to continue?" || exit 0 @@ -271,7 +273,11 @@ bindsym Escape mode "default" } -$(if [[ $dex -eq 0 ]]; then +# Auto start section +$(if [[ $sounds -eq 0 ]]; then + echo "exec --no-startup-id ${i3Path}/scripts/sound.py" +fi +if [[ $dex -eq 0 ]]; then echo '# Start XDG autostart .desktop files using dex. See also' echo '# https://wiki.archlinux.org/index.php/XDG_Autostart' echo 'exec --no-startup-id dex --autostart --environment i3'