minor update

This commit is contained in:
JaKooLit 2025-02-05 11:12:21 +09:00
parent 2460ffc7bd
commit f4c78ce0c8
4 changed files with 10 additions and 13 deletions

View File

@ -98,10 +98,13 @@ for PKG in "${uninstall[@]}"; do
uninstall_package "$PKG" "$LOG" uninstall_package "$PKG" "$LOG"
done done
printf "\n%.0s" {1..1}
for PKG2 in "${force[@]}"; do for PKG2 in "${force[@]}"; do
re_install_package "$PKG2" "$LOG" re_install_package "$PKG2" "$LOG"
done done
printf "\n%.0s" {1..1}
# install YAD from assets. NOTE This is downloaded from SID repo and sometimes # install YAD from assets. NOTE This is downloaded from SID repo and sometimes
# Trixie is removing YAD for some strange reasons # Trixie is removing YAD for some strange reasons

View File

@ -62,7 +62,6 @@ printf "${YELLOW} Installing ${SKY_BLUE}Nvidia packages${RESET} ...\n"
install_package "$NVIDIA" "$LOG" install_package "$NVIDIA" "$LOG"
done done
# adding additional nvidia-stuff # adding additional nvidia-stuff
printf "${YELLOW} adding ${SKY_BLUE}nvidia-stuff${RESET} to /etc/default/grub..." printf "${YELLOW} adding ${SKY_BLUE}nvidia-stuff${RESET} to /etc/default/grub..."

View File

@ -52,7 +52,7 @@ MLOG="install-$(date +%d-%H%M%S)_rofi_wayland2.log"
printf "\n%s - Re-installing ${SKY_BLUE}rofi-wayland dependencies${RESET}.... \n" "${INFO}" printf "\n%s - Re-installing ${SKY_BLUE}rofi-wayland dependencies${RESET}.... \n" "${INFO}"
for FORCE in "${rofi[@]}"; do for FORCE in "${rofi[@]}"; do
re_install_package "$FORCE" 2>&1 | tee -a "$LOG" re_install_package "$FORCE" "$LOG"
done done
printf "\n%.0s" {1..2} printf "\n%.0s" {1..2}

View File

@ -83,13 +83,6 @@ if [ ! -d Install-Logs ]; then
mkdir Install-Logs mkdir Install-Logs
fi fi
# Function to colorize prompts
colorize_prompt() {
local color="$1"
local message="$2"
echo -n "${color}${message}$(tput sgr0)"
}
printf "\n%.0s" {1..1} 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
@ -97,8 +90,8 @@ if ! dpkg -l | grep -w pciutils > /dev/null; then
echo "pciutils is not installed. Installing..." echo "pciutils is not installed. Installing..."
sudo apt-get install -y pciutils sudo apt-get install -y pciutils
fi fi
printf "\n%.0s" {1..2}
printf "\n%.0s" {1..2}
# Function to colorize prompts # Function to colorize prompts
colorize_prompt() { colorize_prompt() {
local color="$1" local color="$1"
@ -160,7 +153,9 @@ execute_script() {
printf "\n" 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
ask_yes_no "-${YELLOW}NVIDIA${RESET} GPU is detected. Do you want script to configure it?" nvidia 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
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
@ -179,13 +174,13 @@ ask_yes_no "-Install ${YELLOW}zsh${RESET}, ${YELLOW}oh-my-zsh${RESET} & (Optiona
printf "\n" printf "\n"
ask_yes_no "-Installing on ${YELLOW}Asus ROG laptops${RESET}?" rog ask_yes_no "-Installing on ${YELLOW}Asus ROG laptops${RESET}?" rog
printf "\n" printf "\n"
ask_yes_no "-Do you want to download pre-configured ${YELLOW}KooL Hyprland dotfiles${RESET}?" dots ask_yes_no "-Do you want to download pre-configured ${YELLOW}KooL Hyprland dotfiles?${RESET}" dots
printf "\n" printf "\n"
# Ensuring all in the scripts folder are made executable # Ensuring all in the scripts folder are made executable
chmod +x install-scripts/* chmod +x install-scripts/*
printf "\n%.0s" {1..3} printf "\n%.0s" {1..2}
# check if any known login managers are active when users choose to install sddm # check if any known login managers are active when users choose to install sddm
if [ "$sddm" == "y" ] || [ "$sddm" == "Y" ]; then if [ "$sddm" == "y" ] || [ "$sddm" == "Y" ]; then
# List of services to check # List of services to check