21 lines
719 B
Bash
21 lines
719 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 "${sudoFlags[@]}" systemctl disable --now fenrirscreenreader.service
|
|
sudo "${sudoFlags[@]}" systemctl enable --now espeakup.service
|
|
fi
|
|
if [[ "$screenreader" == "fenrir" ]]; then
|
|
sudo "${sudoFlags[@]}" systemctl disable --now espeakup.service
|
|
sudo "${sudoFlags[@]}" systemctl enable --now fenrirscreenreader.service
|
|
fi
|
|
fi
|