diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-30 16:42:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-30 16:42:26 +0100 |
commit | 9698703e0eac9651f5699a816aeb9a7cc16fd03e (patch) | |
tree | 038349edeca1425b48530cff095d1eedda9ba335 | |
parent | README update (diff) | |
download | arch-installer-9698703e0eac9651f5699a816aeb9a7cc16fd03e.tar.gz arch-installer-9698703e0eac9651f5699a816aeb9a7cc16fd03e.tar.bz2 arch-installer-9698703e0eac9651f5699a816aeb9a7cc16fd03e.tar.xz arch-installer-9698703e0eac9651f5699a816aeb9a7cc16fd03e.tar.zst arch-installer-9698703e0eac9651f5699a816aeb9a7cc16fd03e.zip |
Function added
-rwxr-xr-x | arch-installer.sh | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/arch-installer.sh b/arch-installer.sh index 2d97190..d7a6cc4 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -105,12 +105,12 @@ jo_get_vm() { if dialog --title "$1"\ --yesno "Are you running in a virtual machine?"\ 6 45; then - sel=$(dialog --nocancel --title "$1"\ - --radiolist "Which hypervisor are you using?" 10 50 3 \ - vbox "Oracle VirtualBox" on \ - vmware "VMware" off \ - other "Something else" off \ - 3>&1 1>&2 2>&3 3>&-) + sel=$(dialog --nocancel --title "$1"\ + --radiolist "Which desktop manager would you like?" 10 50 3 \ + vbox "Oracle VirtualBox" on \ + vmware "VMware" off \ + other "Something else" off \ + 3>&1 1>&2 2>&3 3>&-) if echo -n "$sel" | grep -q vbox; then vbox=true elif echo -n "$sel" | grep -q utils; then @@ -118,6 +118,37 @@ jo_get_vm() { fi fi } + +jo_get_de() { + if [ "$extras" = true ]; then + if dialog --title "$1"\ + --yesno "Do you wish to install a graphical environment?"\ + 6 45; then + sel=$(dialog --nocancel --title "$1"\ + --radiolist "Which hypervisor are you using?" 12 50 5 \ + gnome "Gnome with gdm" on \ + xfce "xfce with lightdm" off \ + lxde "lxde with lightdm" off \ + kde "kde with kdm" off \ + i3-gaps "i3-gaps with lightdm" off \ + bspwm "bspwm with lightdm" off \ + 3>&1 1>&2 2>&3 3>&-) + if echo -n "$sel" | grep -q gnome; then + gnome=true + elif echo -n "$sel" | grep -q xfce; then + xfce=true + elif echo -n "$sel" | grep -q lxde; then + lxde=true + elif echo -n "$sel" | grep -q kde; then + kde=true + elif echo -n "$sel" | grep -q i3-gaps; then + i3gaps=true + elif echo -n "$sel" | grep -q bspwm; then + bspwm=true + fi + fi + fi +} #==================================================================================================# #------------------------------------------ DISK SETUP --------------------------------------------# #==================================================================================================# |