2024-06-24 16:55:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-06-27 05:08:47 +00:00
|
|
|
# Parent installer for all System Setup Scripts.
|
|
|
|
|
2024-06-27 18:14:32 +00:00
|
|
|
# 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"
|
|
|
|
|
2024-06-27 07:24:32 +00:00
|
|
|
if [[ ! -z $(which apt-get) ]]; then
|
2024-06-27 05:08:47 +00:00
|
|
|
system=Debian
|
2024-06-27 07:24:32 +00:00
|
|
|
echo "System Identified: $system"
|
|
|
|
elif [[ ! -z $(which pacman) ]]; then
|
2024-06-27 05:08:47 +00:00
|
|
|
system=Arch
|
2024-06-27 07:24:32 +00:00
|
|
|
echo "System Identified: $system"
|
2024-06-27 05:08:47 +00:00
|
|
|
else
|
|
|
|
echo "System Misconfigured"
|
|
|
|
break
|
|
|
|
fi
|
2024-06-24 16:55:52 +00:00
|
|
|
|
2024-06-24 17:22:18 +00:00
|
|
|
|
2024-06-27 18:14:32 +00:00
|
|
|
|
|
|
|
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"
|
2024-06-27 05:08:47 +00:00
|
|
|
|
|
|
|
echo "done"
|