2021-10-23 14:26:22 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-23 14:33:47 -04:00
|
|
|
if [[ "$(systemctl is-active fenrirscreenreader.service)" == "active" ]]; then
|
2021-10-23 14:26:22 -04:00
|
|
|
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
|
2023-08-19 17:09:54 -04:00
|
|
|
sudo "${sudoFlags[@]}" systemctl disable --now fenrirscreenreader.service
|
|
|
|
sudo "${sudoFlags[@]}" systemctl enable --now espeakup.service
|
2021-10-23 14:26:22 -04:00
|
|
|
fi
|
|
|
|
if [[ "$screenreader" == "fenrir" ]]; then
|
2023-08-19 17:09:54 -04:00
|
|
|
sudo "${sudoFlags[@]}" systemctl disable --now espeakup.service
|
|
|
|
sudo "${sudoFlags[@]}" systemctl enable --now fenrirscreenreader.service
|
2021-10-23 14:26:22 -04:00
|
|
|
fi
|
|
|
|
fi
|