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