remove initial prompt asking if user wants to install a de and put it as another option the dialog menu

pull/3/head
amy 3 years ago
parent a03e790d08
commit 6ffa58dd8e
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -371,14 +371,14 @@ arch-chroot pacman-key --populate crystal
clear clear
yesno "Would you like to install a DE/WM profile?" #yesno "Would you like to install a DE/WM profile?"
echo "DEP=$yn" #echo "DEP=$yn"
DEP="$yn" #DEP="$yn"
arch-chroot /mnt pacman -Sy --quiet --noconfirm arch-chroot /mnt pacman -Sy --quiet --noconfirm
if [[ "$DEP" == "0" ]]; then #if [[ "$DEP" == "0" ]]; then
#inf "--- Desktop Environments ---" #inf "--- Desktop Environments ---"
#inf "- GNOME" #inf "- GNOME"
#inf "- KDE" #inf "- KDE"
@ -407,13 +407,21 @@ if [[ "$DEP" == "0" ]]; then
# ;; # ;;
#esac #esac
while [[ "$DE" == "" ]]; do while [[ "$DE" == "" ]]; do
menu=$(dialog --title "Citrine" --menu "Select the Desktop Environment you want to install" 12 100 3 "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" --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" --stdout)
if [[ "$menu" == "Official" ]]; then if [[ "$menu" == "Official" ]]; then
DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 2 "Onyx" "Our custom Desktop Environment based on XFCE" "Onyx tiling" "Our custom Desktop Environment based on xfce but with i3 as the wm" --stdout) DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 2 "Onyx" "Our custom Desktop Environment based on XFCE" "Onyx tiling" "Our custom Desktop Environment based on xfce but with i3 as the wm" --stdout)
elif [[ "$menu" == "Third Party (supported)" ]]; then elif [[ "$menu" == "Third Party (supported)" ]]; 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 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 (unsupported)" ]]; then elif [[ "$menu" == "Third Party (unsupported)" ]]; then
DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 2 "Pantheon" "The Pantheon desktop environment from elementaryos" "Enlightenment" "A very DIY desktop environment, refer to archwiki" --stdout) DE=$(dialog --title "Citrine" --menu "Please choose the DE you want to install" 12 100 2 "Pantheon" "The Pantheon desktop environment from elementaryos" "Enlightenment" "A very DIY desktop environment, refer to archwiki" --stdout)
elif [[ "$menu" == "None/DIY" ]]; then
yesno "Are you sure that you dont want to install any DE?"
if [[ "$yn" == "0" ]]; then
DE="none"
DM="none"
else [[ "$yn" == "1" ]]
DE=""
fi
fi fi
done done
if [[ "$DE" == "Onyx" ]]; then if [[ "$DE" == "Onyx" ]]; then
@ -472,6 +480,7 @@ else
arch-chroot /mnt pacman -S --quiet --noconfirm $DM arch-chroot /mnt pacman -S --quiet --noconfirm $DM
fi fi
if [[ "$DM" != "" ]]; then if [[ "$DM" != "" ]]; then
if [[ "$DM" != "none" ]]; then
prompt "Would you like to enable ${DM} for ${DE}? (Y/n)" prompt "Would you like to enable ${DM} for ${DE}? (Y/n)"
useDM="$response" useDM="$response"
if [[ "$useDM" != "n" ]]; then if [[ "$useDM" != "n" ]]; then
@ -479,6 +488,7 @@ if [[ "$DM" != "" ]]; then
fi fi
fi fi
fi fi
fi
prompt "Would you like to add more packages? (Y/n)" prompt "Would you like to add more packages? (Y/n)"
MP="$response" MP="$response"

Loading…
Cancel
Save