pacman -S --noconfirm dialog ||(echo"Error at script start: Are you sure you're running this as the root user? Are you sure you have an internet connection?"&&exit)
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
error(){ dialog --title "Error!" --msgbox "We've run into a fatal-ish error. Check the LARBS.log file for more information"1060&& clear &&exit;}
cmd=(dialog --separate-output --checklist "Select additional packages to install with <SPACE>:"2276 16)
#If this is the first run, install all core programs.
if[[ -e .firstrun ]]
then
dialog --title "Let's get this party started!" --msgbox "The rest of the installation will now be totally automated, so you can sit back and relax.\n\nIt will take some time, but when done, you'll can relax even more with your complete system.\n\nNow just press <OK> and the system will begin installation!"1360
printf"\n${BLUE}Now installing main programs.\n${NC}"
blue Downloading next portion of the script \(aur_packages.sh\)...
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/aur_packages.sh > /home/$USER/aur_packages.sh && blue Running aur_packages as $(whoami)...
sudo -u $USER bash /home/$USER/aur_packages.sh || red Error when running aur_packages...