diff --git a/i38.sh b/i38.sh index f3d34bb..74d4fbe 100755 --- a/i38.sh +++ b/i38.sh @@ -367,6 +367,10 @@ fi if [[ $dex -eq 0 ]]; then dex -t "${XDG_CONFIG_HOME:-${HOME}/.config}/autostart" -c $(command -v orca) fi +if command -v acpi &> /dev/null ; then + batteryAlert=1 + batteryAlert=$(yesno "Do you want to use a braille display with Orca?") +fi brlapi=1 brlapi=$(yesno "Do you want to use a braille display with Orca?") sounds=1 @@ -637,7 +641,9 @@ if command -v remind &> /dev/null && command -v notify-send &> /dev/null ; then echo "exec_always --no-startup-id $(command -v remind) -z '-k:${HOME}/.config/i3/scripts/reminder.sh %s &' ${HOME}/.reminders < /dev/null > /dev/null 2>&1" touch ~/.reminders fi -echo "exec_always --no-startup-id ${i3Path}/scripts/battery_alert.sh" +if [[ $batteryAlert -eq 0 ]]; then + echo "exec_always --no-startup-id ${i3Path}/scripts/battery_alert.sh" +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'