Ask if the battery alert script is wanted during setup if acpi is installed.

This commit is contained in:
Storm Dragon 2023-10-22 20:54:31 -04:00
parent 2e15449d9a
commit 65e8c0636a
1 changed files with 7 additions and 1 deletions

8
i38.sh
View File

@ -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'