From 65e8c0636ab65494368ba3605a97d348a4f6474c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 22 Oct 2023 20:54:31 -0400 Subject: [PATCH] Ask if the battery alert script is wanted during setup if acpi is installed. --- i38.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'