diff --git a/src/commands/applications-setup/dwmtitus-setup.sh b/src/commands/applications-setup/dwmtitus-setup.sh index 0936449a..5759d31f 100644 --- a/src/commands/applications-setup/dwmtitus-setup.sh +++ b/src/commands/applications-setup/dwmtitus-setup.sh @@ -171,9 +171,32 @@ configure_backgrounds() { fi } +setupDisplayManager() { + echo "Setting up Xorg" + case "$PACKAGER" in + pacman) + $ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm xorg-xinit xorg-server + ;; + apt) + $ESCALATION_TOOL "$PACKAGER" install -y xorg xinit + ;; + dnf) + $ESCALATION_TOOL "$PACKAGER" install -y xorg-x11-xinit xorg-x11-server-Xorg + ;; + *) + echo "Unsupported package manager: $PACKAGER" + exit 1 + ;; + esac + echo "Xorg installed successfully" + echo "Setting up Display Manager" + + +} checkEnv checkEscalationTool +setupDisplayManager setupDWM makeDWM install_nerd_font