Ask if the battery alert script is wanted during setup if acpi is installed.
This commit is contained in:
parent
2e15449d9a
commit
65e8c0636a
8
i38.sh
8
i38.sh
@ -367,6 +367,10 @@ fi
|
|||||||
if [[ $dex -eq 0 ]]; then
|
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
|
||||||
|
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=1
|
||||||
brlapi=$(yesno "Do you want to use a braille display with Orca?")
|
brlapi=$(yesno "Do you want to use a braille display with Orca?")
|
||||||
sounds=1
|
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"
|
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
|
touch ~/.reminders
|
||||||
fi
|
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
|
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'
|
||||||
echo '# https://wiki.archlinux.org/index.php/XDG_Autostart'
|
echo '# https://wiki.archlinux.org/index.php/XDG_Autostart'
|
||||||
|
Loading…
Reference in New Issue
Block a user