21 lines
647 B
Bash
21 lines
647 B
Bash
#!/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
|