fix(dwmtitus-setup): dm picking (#823)

Co-authored-by: usr <you@example.com>
This commit is contained in:
nev-al 2024-11-06 18:04:02 +00:00 committed by GitHub
parent f0734f361c
commit e463037e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,7 +214,22 @@ setupDisplayManager() {
printf "%b\n" "${YELLOW}3. GDM ${RC}" printf "%b\n" "${YELLOW}3. GDM ${RC}"
printf "%b\n" "${YELLOW} ${RC}" printf "%b\n" "${YELLOW} ${RC}"
printf "%b" "${YELLOW}Please select one: ${RC}" printf "%b" "${YELLOW}Please select one: ${RC}"
read -r DM read -r choice
case "$choice" in
1)
DM="sddm"
;;
2)
DM="lightdm"
;;
3)
DM="gdm"
;;
*)
printf "%b\n" "${RED}Invalid selection! Please choose 1, 2, or 3.${RC}"
exit 1
;;
esac
case "$PACKAGER" in case "$PACKAGER" in
pacman) pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$DM" "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$DM"