edits for fig

pull/3/head
Matt C 3 years ago
parent e5921c98fe
commit 319303f1cf

@ -1,7 +1,7 @@
# Maintainer: Matt C <mdc028[at]bucknell[dot]edu> # Maintainer: Matt C <mdc028[at]bucknell[dot]edu>
pkgname=citrine pkgname=citrine
pkgver=3.4.0 pkgver=3.4.5
pkgrel=1 pkgrel=1
pkgdesc="Crystal Linux Script for installing the system" pkgdesc="Crystal Linux Script for installing the system"
arch=('any') arch=('any')
@ -10,7 +10,7 @@ license=('custom')
source=("citrine.sh" "citrine.internal.sh") source=("citrine.sh" "citrine.internal.sh")
depends=('arch-install-scripts' 'util-linux' 'parted' 'dialog' 'dosfstools' 'ntp' 'python' 'wget') depends=('arch-install-scripts' 'util-linux' 'parted' 'dialog' 'dosfstools' 'ntp' 'python' 'wget')
md5sums=('c16f9c01d656886b905071cb5477d3e3' md5sums=('c16f9c01d656886b905071cb5477d3e3'
'306d855ec9525d40b9b9547ee0d477d6') 'd73cb6dd812ba595636d27bcfc75d9d4')
package() { package() {
chmod +x *.sh chmod +x *.sh

@ -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

Loading…
Cancel
Save