Offer to start braille even if dex is used to handle startup applications.

This commit is contained in:
Storm Dragon 2022-11-23 20:27:41 -05:00
parent da420e50bb
commit 65bbe2fcef

8
i38.sh
View File

@ -203,9 +203,7 @@ if [[ $dex -eq 0 ]]; then
dex -t "${XDG_CONFIG_HOME:-${HOME}/.config}/autostart" -c $(command -v orca) dex -t "${XDG_CONFIG_HOME:-${HOME}/.config}/autostart" -c $(command -v orca)
fi fi
brlapi=1 brlapi=1
if [[ $dex -eq 1 ]]; then
brlapi=$(yesno "Do you want to use a braille display with Orca?") brlapi=$(yesno "Do you want to use a braille display with Orca?")
fi
sounds=1 sounds=1
sounds=$(yesno "Do you want window event sounds?") sounds=$(yesno "Do you want window event sounds?")
@ -351,6 +349,9 @@ bindsym Escape mode "default"
# Auto start section # Auto start section
$(if [[ $sounds -eq 0 ]]; then $(if [[ $sounds -eq 0 ]]; then
echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py" echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py"
if [[ $brlapi -eq 0 ]]; then
echo 'xbrlapi --quiet'
fi
fi fi
if [[ $dex -eq 0 ]]; then if [[ $dex -eq 0 ]]; then
echo '# Start XDG autostart .desktop files using dex. See also' echo '# Start XDG autostart .desktop files using dex. See also'
@ -361,8 +362,5 @@ else
echo 'exec clipster -d' echo 'exec clipster -d'
echo 'exec /usr/lib/notification-daemon-1.0/notification-daemon' echo 'exec /usr/lib/notification-daemon-1.0/notification-daemon'
echo 'exec orca' echo 'exec orca'
if [[ $brlapi -eq 0 ]]; then
echo 'xbrlapi --quiet'
fi
fi) fi)
EOF EOF