#!/bin/bash # Parent installer for all System Setup Scripts. # Select Window Manager while true; do printf %"s\n\n" "Window Manager Selection(1-3):" printf %"s\n" "1) i3wm" printf %"s\n" "2) AwesomeWM" printf %"s\n\n" "3) Hyprland" read -p "Enter your Selection: " answer case $answer in 1) windowmanager=i3wm && break;; 2) windowmanager=awesomewm && break;; 3) windowmanager=hyprland && break;; *) echo "invalid option";; esac done # Select Graphics Drivers while true; do printf %"s\n\n" "Select Graphics Environment(1-6):" printf %"s\n" "1) Nvidia GPU Proprietary" printf %"s\n" "2) Nvidia GPU Nouveau" printf %"s\n" "3) AMD GPU" printf %"s\n" "4) Integrated Intel GPU" printf %"s\n" "5) Integrated AMD GPU" printf %"s\n\n" "6) Virtual Box" read -p "Enter your Selection: " answer case $answer in 1) GPUDriver=hyprland && break;; 2) GPUDriver=hyprland && break;; 3) GPUDriver=hyprland && break;; 4) GPUDriver=hyprland && break;; 5) GPUDriver=hyprland && break;; 6) GPUDriver=hyprland && break;; *) echo "invalid option";; esac done echo "$GPUDriver" if [[ ! -z $(which apt-get) ]]; then system=Debian echo "System Identified: $system" elif [[ ! -z $(which pacman) ]]; then system=Arch echo "System Identified: $system" else echo "System Misconfigured" break fi script_path="$(pwd)/scripts/system-setup/" username=$(whoami) if [ $username == "root" ]; then echo "Error: Do not run script as root." break fi echo "su - -c "$script_path/install-pkgs.sh $system $username"" echo "su - -c "$script_path/sources-setup.sh $system && $script_path/sudo-setup.sh $system $username && $script_path/git-setup.sh $system"" echo "bash $script_path/dotfiles-setup.sh $system" echo "done"