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,42 +332,38 @@ 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
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 [[ ! -f /etc/fig ]]; then
if [[ "$menu" == "Official" ]]; 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)
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) if [[ "$menu" == "Official" ]]; then
elif [[ "$menu" == "Third Party (supported)" ]]; 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 5 "Gnome" "The Gnome desktop environment" "KDE" "The KDE desktop environment" "Xfce" "The xfce desktop environment" "budgie" "The budgie desktop environment" "Mate" "The Mate desktop environment" --stdout) elif [[ "$menu" == "Third Party (supported)" ]]; then
elif [[ "$menu" == "Third Party (unsupported)" ]]; then DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 5 "Gnome" "The Gnome desktop environment" "KDE" "The KDE desktop environment" "Xfce" "The xfce desktop environment" "budgie" "The budgie desktop environment" "Mate" "The Mate desktop environment" --stdout)
DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 1 "Enlightenment" "A very DIY desktop environment, refer to archwiki" --stdout) elif [[ "$menu" == "Third Party (unsupported)" ]]; then
elif [[ "$menu" == "None/DIY" ]]; then DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 1 "Enlightenment" "A very DIY desktop environment, refer to archwiki" --stdout)
yesno "Are you sure that you dont want to install any DE?" elif [[ "$menu" == "None/DIY" ]]; then
if [[ "$yn" == "0" ]]; then yesno "Are you sure that you dont want to install any DE?"
DE="none" if [[ "$yn" == "0" ]]; then
DM="none" DE="none"
else DM="none"
DE="" else
DE=""
fi
fi fi
else
DE="Fig"
fi 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,11 +409,7 @@ 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)" arch-chroot /mnt systemctl enable ${DM}
useDM="$yn"
if [[ "$useDM" != "1" ]]; then
arch-chroot /mnt systemctl enable ${DM}
fi
fi fi
fi fi
@ -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