Update 3-post-setup.sh

This commit is contained in:
ArcExp 2023-10-12 18:06:01 +01:00 committed by GitHub
parent 2a188eadc3
commit d5fd3bcff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 10 deletions

View File

@ -59,24 +59,27 @@ echo -ne "
Enabling (and Theming) Login Display Manager Enabling (and Theming) Login Display Manager
------------------------------------------------------------------------- -------------------------------------------------------------------------
" "
if [[ ${DESKTOP_ENV} == "kde" ]]; then if [[ "${DESKTOP_ENV}" == "kde" ]]; then
systemctl enable sddm.service systemctl enable sddm.service
if [[ ${INSTALL_TYPE} == "FULL" ]]; then if [[ "${INSTALL_TYPE}" == "FULL" ]]; then
echo [Theme] >> /etc/sddm.conf echo "[Theme]" >> /etc/sddm.conf
echo Current=Nordic >> /etc/sddm.conf echo "Current=Nordic" >> /etc/sddm.conf
fi fi
elif [[ "${DESKTOP_ENV}" == "gnome" ]]; then elif [[ "${DESKTOP_ENV}" == "gnome" ]]; then
systemctl enable gdm.service systemctl enable gdm.service
else else
if [[ ! "${DESKTOP_ENV}" == "server" ]]; then if [[ ! "${DESKTOP_ENV}" == "server" ]]; then
sudo pacman -S --noconfirm --needed lightdm lightdm-gtk-greeter sudo pacman -S --noconfirm --needed lightdm lightdm-gtk-greeter
systemctl enable lightdm.service systemctl enable lightdm.service
sed -i 's/#greeter-session=example.*/greeter-session=lightdm-gtk-greeter/g' /etc/lightdm/lightdm.conf
fi fi
if [[ "${INSTALL_TYPE}" == "FULL" ]]; then if [[ "${DESKTOP_ENV}" == "hypr" ]]; then
sed -i 's/#greeter-session=example.*/greeter-session=lightdm-gtk-greeter/g' /etc/lightdm/lightdm.conf git clone https://github.com/linuxmobile/hyprland-dots
cd hyprland-dots/
rsync -avxHAXP --exclude '.git*' .* "/home/$USERNAME/"
fi fi
fi fi