Added internet and screen reader options.

This commit is contained in:
Storm Dragon 2021-10-23 14:26:22 -04:00
parent 63e857c4b0
commit ac39dfe76f
2 changed files with 24 additions and 0 deletions

20
.includes/screenreader.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
if [[ "$(systemctl is-active fenrirscreenreader.service)" == "Active" ]]; then
screenreader="speakup"
else
screenreader="fenrir"
fi
continue="$(yesno "Do you want to switch the active console screen reader to ${screenreader^}?")"
if [[ "$continue" == "Yes" ]]; then
if [[ "$screenreader" == "speakup" ]]; then
install_package espeakup
sudo systemctl disable --now fenrirscreenreader.service
sudo systemctl enable --now espeakup.service
fi
if [[ "$screenreader" == "fenrir" ]]; then
sudo systemctl disable --now espeakup.service
sudo systemctl enable --now fenrirscreenreader.service
fi
fi

View File

@ -47,6 +47,9 @@ while [[ "$choice" != "Exit" ]]; do
"Install Ratpoison Windowmanager") "Install Ratpoison Windowmanager")
source .includes/gui.sh ratpoison source .includes/gui.sh ratpoison
;; ;;
"Screen reader")
source .includes/screenreader.sh
;;
"Set up gaming") "Set up gaming")
source .includes/gaming.sh source .includes/gaming.sh
;; ;;
@ -56,6 +59,7 @@ while [[ "$choice" != "Exit" ]]; do
"Configure internet" \ "Configure internet" \
"Install Mate Desktop" \ "Install Mate Desktop" \
"Install Ratpoison Windowmanager" \ "Install Ratpoison Windowmanager" \
"Screen reader" \
"Set up gaming" \ "Set up gaming" \
"Exit" \ "Exit" \
)" )"