@ -332,6 +332,7 @@ cp -v /etc/pacman.conf /mnt/etc/pacman.conf
arch-chroot /mnt pacman -Sy --quiet --noconfirm
arch-chroot /mnt pacman -Sy --quiet --noconfirm
while [ [ " $DE " = = "" ] ] ; do
while [ [ " $DE " = = "" ] ] ; do
if [ [ ! -f /etc/fig ] ] ; then
menu = $( dialog --title "Citrine" --menu "Select the Desktop Environment you want to install" 12 100 4 "Official" "Our pre-themed desktop environments" "Third Party (supported)" "Third party Desktop Environments that are supported" "Third Party (unsupported)" "Third Party Desktop Environments that aren't supported" "None/DIY" "Install no de from this list" --stdout)
menu = $( dialog --title "Citrine" --menu "Select the Desktop Environment you want to install" 12 100 4 "Official" "Our pre-themed desktop environments" "Third Party (supported)" "Third party Desktop Environments that are supported" "Third Party (unsupported)" "Third Party Desktop Environments that aren't supported" "None/DIY" "Install no de from this list" --stdout)
if [ [ " $menu " = = "Official" ] ] ; then
if [ [ " $menu " = = "Official" ] ] ; then
DE = $( dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 1 "Onyx" "Our custom Desktop Environment based on Budgie" --stdout)
DE = $( dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 1 "Onyx" "Our custom Desktop Environment based on Budgie" --stdout)
@ -348,26 +349,21 @@ while [[ "$DE" == "" ]]; do
DE = ""
DE = ""
fi
fi
fi
fi
else
DE = "Fig"
fi
if [ [ " $DE " = = "Onyx" ] ] ; then
if [ [ " $DE " = = "Onyx" ] ] ; then
arch-chroot /mnt pacman -S --quiet --noconfirm onyx xorg-server budgie-desktop gnome
arch-chroot /mnt pacman -S --quiet --noconfirm onyx xorg-server budgie-desktop gnome
# This didn't work :C
#arch-chroot /mnt su - ${UN} -c "gsettings set org.gnome.desktop.interface gtk-theme \"crystal-obsidian\""
#arch-chroot /mnt su - ${UN} -c "gsettings set org.gnome.desktop.interface icon-theme \"crystal-obsidian-icons\""
mkdir -p /mnt/etc/skel/
mkdir -p /mnt/etc/skel/
echo "gsettings set org.gnome.desktop.interface gtk-theme \"crystal-obsidian\"" >> /mnt/etc/skel/.xsession
echo "gsettings set org.gnome.desktop.interface gtk-theme \"crystal-obsidian\"" >> /mnt/etc/skel/.xsession
echo "gsettings set org.gnome.desktop.interface icon-theme \"crystal-obsidian-icons\"" >> /mnt/etc/skel/.xsession
echo "gsettings set org.gnome.desktop.interface icon-theme \"crystal-obsidian-icons\"" >> /mnt/etc/skel/.xsession
# homedir of user that exists will also already exist
echo "gsettings set org.gnome.desktop.interface gtk-theme \"crystal-obsidian\"" >> /mnt/home/${ UN } /.xsession
echo "gsettings set org.gnome.desktop.interface icon-theme \"crystal-obsidian-icons\"" >> /mnt/home/${ UN } /.xsession
DM = "lightdm"
DM = "lightdm"
elif [ [ " $DE " = = "Gnome" ] ] ; then
elif [ [ " $DE " = = "Gnome" ] ] ; then
arch-chroot /mnt pacman -S --quiet --noconfirm gnome gnome-extra chrome-gnome-shell
arch-chroot /mnt pacman -S --quiet --noconfirm gnome gnome-extra chrome-gnome-shell
DM = "gdm"
DM = "gdm"
elif [ [ " $DE " = = "KDE" ]] ; then
elif [ [ " $DE " = = "KDE" || " $DE " = = "Fig" ]] ; then
arch-chroot /mnt pacman -S --quiet --noconfirm plasma kde-applications sddm
arch-chroot /mnt pacman -S --quiet --noconfirm plasma kde-applications sddm
DM = "sddm"
DM = "sddm"
elif [ [ " $DE " = = "budgie" ] ] ; then
elif [ [ " $DE " = = "budgie" ] ] ; then
@ -413,12 +409,8 @@ if [[ "$DM" != "" ]]; then
arch-chroot /mnt pacman -S --quiet --noconfirm lightdm-gtk-greeter
arch-chroot /mnt pacman -S --quiet --noconfirm lightdm-gtk-greeter
fi
fi
if [ [ " $DM " != "none" ] ] ; then
if [ [ " $DM " != "none" ] ] ; then
yesno " Would you like to enable ${ DM } for ${ DE } ? (Y/n) "
useDM = " $yn "
if [ [ " $useDM " != "1" ] ] ; then
arch-chroot /mnt systemctl enable ${ DM }
arch-chroot /mnt systemctl enable ${ DM }
fi
fi
fi
fi
fi
if [ [ " $DE " != "none" ] ] ; then
if [ [ " $DE " != "none" ] ] ; then
@ -451,6 +443,7 @@ if [[ "$DE" != "Fig" ]]; then
echo >> /mnt/etc/default/grub
echo >> /mnt/etc/default/grub
echo "GRUB_THEME=\"/usr/share/grub/themes/crystal/theme.txt\"" >> /mnt/etc/default/grub
echo "GRUB_THEME=\"/usr/share/grub/themes/crystal/theme.txt\"" >> /mnt/etc/default/grub
else
else
arch-chroot /mnt pacman -S --quiet --noconfirm crystal-grub-theme fig-configs
echo >> /mnt/etc/default/grub
echo >> /mnt/etc/default/grub
echo "GRUB_THEME=\"/usr/share/grub/themes/bigsur/theme.txt\"" >> /mnt/etc/default/grub
echo "GRUB_THEME=\"/usr/share/grub/themes/bigsur/theme.txt\"" >> /mnt/etc/default/grub
fi
fi