Last active
July 27, 2022 22:20
-
-
Save ikozyris/333ad5fdedb69308d3c41bf4b9e5ad44 to your computer and use it in GitHub Desktop.
Simple tool to install your prefered Window Manager and Enviroment for newbies (works on apt-based distros.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Check if whiptail is installed | |
if [ ! "$(which whiptail)" ]; then | |
echo -e "whiptail is not installed. Don't worry installing it now." | |
#Installs whiptail | |
apt install whiptail -y | |
fi | |
#For Desktop Manager | |
wm=$(whiptail --title "Window Manager" --inputbox "Enter Your the Desktop Manager you want to install gdm3, lightdm, sddm etc. : " 15 40 lightdm 3>&1 1>&2 2>&3) | |
exitstatus=$? | |
if [ $exitstatus = 0 ]; then | |
echo "Your prefered Window Manager is:" $wm | |
fi | |
#For Desktop Enviroment | |
de=$(whiptail --title "Desktop Eniviroment" --inputbox "Enter Your the Desktop Enviroment you want to install lxqt, gnome-session, plasma-desktop etc. : " 15 40 plasma-desktop 3>&1 1>&2 2>&3) | |
exitstatus=$? | |
if [ $exitstatus = 0 ]; then | |
echo "Your prefered Desktop Enviroment is:" $de | |
fi | |
#To install the pair of them | |
apt update && apt install $de $wm -y | |
whiptail --title "Reboot required" --yesno "Installation finished please press <Yes> to reboot your device" 15 40 | |
echo "rebooting..." | |
reboot |
Author
ikozyris
commented
Mar 20, 2022
•
- Checks if dependencies are installed and if not they are installed automatically
- User-friendly
- Graphical User Interface not required
- Simple
- Everything is done automatically
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment