Skip to content

Commit e463037

Browse files
nev-alusr
andauthored
fix(dwmtitus-setup): dm picking (#823)
Co-authored-by: usr <you@example.com>
1 parent f0734f3 commit e463037

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

core/tabs/applications-setup/dwmtitus-setup.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,22 @@ setupDisplayManager() {
214214
printf "%b\n" "${YELLOW}3. GDM ${RC}"
215215
printf "%b\n" "${YELLOW} ${RC}"
216216
printf "%b" "${YELLOW}Please select one: ${RC}"
217-
read -r DM
217+
read -r choice
218+
case "$choice" in
219+
1)
220+
DM="sddm"
221+
;;
222+
2)
223+
DM="lightdm"
224+
;;
225+
3)
226+
DM="gdm"
227+
;;
228+
*)
229+
printf "%b\n" "${RED}Invalid selection! Please choose 1, 2, or 3.${RC}"
230+
exit 1
231+
;;
232+
esac
218233
case "$PACKAGER" in
219234
pacman)
220235
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$DM"

0 commit comments

Comments
 (0)