diff --git a/install.sh b/install.sh index 6564ad8..e1121d6 100755 --- a/install.sh +++ b/install.sh @@ -49,10 +49,10 @@ fi clear -printf "\n%.0s" {1..3} +printf "\n%.0s" {1..2} echo -e "\e[32m | _. |/ _ _ | o _|_ \e[39m" echo -e "\e[32m \_| (_| o |\ (_) (_) |_ | |_ 2025\e[39m" -printf "\n%.0s" {1..2} +printf "\n%.0s" {1..1} # Welcome message echo "${SKY_BLUE}Welcome to JaKooLit's Arch-Hyprland Install Script!${RESET}" @@ -69,15 +69,17 @@ read -p "${SKY_BLUE}Would you like to proceed? (y/n): ${RESET}" proceed if [ "$proceed" != "y" ]; then printf "\n%.0s" {1..2} echo "${INFO} Installation aborted. No changes done! Goodbye!" + printf "\n%.0s" {1..2} exit 1 fi -printf "\n%.0s" {1..2} +printf "\n%.0s" {1..1} # install pciutils if detected not installed. Necessary for detecting GPU if ! pacman -Qs pciutils > /dev/null; then echo "pciutils is not installed. Installing..." sudo pacman -S --noconfirm --needed pciutils + printf "\n%.0s" {1..1} fi @@ -171,17 +173,17 @@ execute_script() { } # Collect user responses to all questions -printf "\n" # Check if nvidia is present if lspci | grep -i "nvidia" &> /dev/null; then printf "${INFO} ${YELLOW}NVIDIA GPU${RESET} detected in your system \n" printf "${NOTE} Script will install ${YELLOW}nvidia-dkms nvidia-utils and nvidia-settings${RESET} \n" ask_yes_no "-Do you want script to configure ${YELLOW}NVIDIA${RESET} for you?" nvidia + printf "\n" fi -printf "\n" # Check first if yay or paru is installed before askiing aur helper if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then ask_custom_option "-Type ${YELLOW}AUR helper${RESET} wanted" "paru or yay" aur_helper + printf "\n" fi printf "\n" ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes