adjusted to whiptail version
This commit is contained in:
@@ -1,23 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# base devel + archlinux-keyring #
|
# base-devel + archlinux-keyring #
|
||||||
|
|
||||||
base=(
|
base=(
|
||||||
base-devel
|
base-devel
|
||||||
archlinux-keyring
|
archlinux-keyring
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Change the working directory to the parent directory of the script
|
||||||
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_base.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_base.log"
|
||||||
|
|
||||||
|
# Installation of main components with pacman
|
||||||
# Installation of main components
|
echo -e "\nInstalling ${SKY_BLUE}base-devel${RESET} and ${SKY_BLUE}archlinux-keyring${RESET}..."
|
||||||
printf "\n%s - Installing ${SKY_BLUE}base-devel${RESET} \n" "${NOTE}"
|
|
||||||
|
|
||||||
for PKG1 in "${base[@]}"; do
|
for PKG1 in "${base[@]}"; do
|
||||||
|
echo "Installing $PKG1 with pacman..."
|
||||||
install_package_pacman "$PKG1" "$LOG"
|
install_package_pacman "$PKG1" "$LOG"
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
echo -e "\nInstallation completed. Proceeding with AUR installations (if needed)..."
|
||||||
|
|||||||
@@ -85,14 +85,19 @@ uninstall=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hypr-pkgs.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hypr-pkgs.log"
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ install_package_pacman() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ISAUR=$(command -v yay || command -v paru)
|
ISAUR=$(command -v yay || command -v paru)
|
||||||
|
|
||||||
# Function to install packages with either yay or paru
|
# Function to install packages with either yay or paru
|
||||||
install_package() {
|
install_package() {
|
||||||
if $ISAUR -Q "$1" &>> /dev/null ; then
|
if $ISAUR -Q "$1" &>> /dev/null ; then
|
||||||
@@ -110,6 +109,7 @@ install_package_f() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Function for removing packages
|
# Function for removing packages
|
||||||
uninstall_package() {
|
uninstall_package() {
|
||||||
local pkg="$1"
|
local pkg="$1"
|
||||||
|
|||||||
@@ -3,14 +3,19 @@
|
|||||||
# Adding users into input group #
|
# Adding users into input group #
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_input.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_input.log"
|
||||||
|
|||||||
@@ -26,14 +26,19 @@ ags=(
|
|||||||
ags_tag="v1.9.0"
|
ags_tag="v1.9.0"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log"
|
||||||
|
|||||||
@@ -9,14 +9,19 @@ blue=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_bluetooth.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_bluetooth.log"
|
||||||
|
|||||||
@@ -2,8 +2,16 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Hyprland-Dots to download from main #
|
# Hyprland-Dots to download from main #
|
||||||
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Change the working directory to the parent directory of the script
|
||||||
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
||||||
|
|
||||||
# Check if Hyprland-Dots exists
|
# Check if Hyprland-Dots exists
|
||||||
|
|||||||
@@ -20,14 +20,19 @@ fonts=(
|
|||||||
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_fonts.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_fonts.log"
|
||||||
|
|||||||
@@ -8,15 +8,18 @@ engine=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_themes.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_themes.log"
|
||||||
|
|||||||
@@ -11,19 +11,22 @@ hypr=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log"
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Removing other Hyprland to avoid conflict
|
# Removing other Hyprland to avoid conflict
|
||||||
printf "${YELLOW} Checking for other hyprland packages and remove if any..${RESET}\n"
|
printf "${YELLOW} Checking for other hyprland packages and remove if any..${RESET}\n"
|
||||||
if pacman -Qs hyprland >/dev/null; then
|
if pacman -Qs hyprland >/dev/null; then
|
||||||
|
|||||||
@@ -12,14 +12,19 @@ nvidia_pkg=(
|
|||||||
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_nvidia.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_nvidia.log"
|
||||||
|
|||||||
@@ -3,14 +3,19 @@
|
|||||||
# Nvidia Blacklist #
|
# Nvidia Blacklist #
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_nvidia.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_nvidia.log"
|
||||||
|
|||||||
@@ -3,7 +3,18 @@
|
|||||||
# pacman adding up extra-spices #
|
# pacman adding up extra-spices #
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Change the working directory to the parent directory of the script
|
||||||
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_pacman.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_pacman.log"
|
||||||
|
|||||||
@@ -18,14 +18,13 @@ pipewire_2=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
############## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##############
|
############## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##############
|
||||||
# Set some colors for output messages
|
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
|
|||||||
@@ -10,14 +10,19 @@ rog=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_rog.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_rog.log"
|
||||||
|
|||||||
@@ -19,14 +19,19 @@ login=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm.log"
|
||||||
|
|||||||
@@ -6,14 +6,18 @@ source_theme="https://codeberg.org/JaKooLit/sddm-sequoia"
|
|||||||
theme_name="sequoia_2"
|
theme_name="sequoia_2"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm_theme.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm_theme.log"
|
||||||
|
|||||||
@@ -12,15 +12,18 @@ thunar=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar.log"
|
||||||
|
|||||||
@@ -4,14 +4,19 @@
|
|||||||
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar-default.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar-default.log"
|
||||||
|
|||||||
@@ -9,15 +9,18 @@ xdg=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_xdph.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_xdph.log"
|
||||||
|
|||||||
@@ -14,14 +14,19 @@ zsh_pkg2=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh.log"
|
||||||
|
|||||||
@@ -3,14 +3,19 @@
|
|||||||
# pokemon-color-scripts#
|
# pokemon-color-scripts#
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
# Change the working directory to the parent directory of the script
|
# Change the working directory to the parent directory of the script
|
||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Source the global functions script
|
||||||
|
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||||
|
echo "Failed to source Global_functions.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log"
|
||||||
|
|||||||
444
install.sh
444
install.sh
@@ -71,97 +71,51 @@ echo -e "\e[35m
|
|||||||
\e[0m"
|
\e[0m"
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Welcome message
|
# Welcome message using whiptail (for displaying information)
|
||||||
echo "${SKY_BLUE}Welcome to JaKooLit's Arch-Hyprland (2025) Install Script!${RESET}"
|
whiptail --title "KooL Arch-Hyprland (2025) Install Script" \
|
||||||
echo
|
--msgbox "Welcome to KooL Arch-Hyprland (2025) Install Script!!!\n\n\
|
||||||
echo "${WARNING}ATTENTION: Run a full system update and Reboot first!! (Highly Recommended) ${RESET}"
|
ATTENTION: Run a full system update and Reboot first !!! (Highly Recommended)\n\n\
|
||||||
echo
|
NOTE: If you are installing on a VM, ensure to enable 3D acceleration else Hyprland may NOT start!" \
|
||||||
echo "${YELLOW}NOTE: You will be required to answer some questions during the installation! ${RESET}"
|
15 80
|
||||||
echo
|
|
||||||
echo "${YELLOW}NOTE: If you are installing on a VM, ensure to enable 3D acceleration else Hyprland wont start! ${RESET}"
|
|
||||||
echo
|
|
||||||
|
|
||||||
read -p "${SKY_BLUE}Would you like to proceed? (y/n): ${RESET}" proceed
|
# Ask if the user wants to proceed
|
||||||
|
if ! whiptail --title "Proceed with Installation?" \
|
||||||
if [ "$proceed" != "y" ]; then
|
--yesno "Would you like to proceed?" 7 50; then
|
||||||
printf "\n%.0s" {1..2}
|
echo -e "\n\n"
|
||||||
echo "${INFO} Installation aborted. ${SKY_BLUE}No changes in your system.${RESET} ${YELLOW}Goodbye!${RESET}"
|
echo "${INFO} - You chose ${YELLOW}NOT${RESET} to proceed. Exiting..."
|
||||||
printf "\n%.0s" {1..2}
|
echo -e "\n\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If they choose "Yes" (1), the script continues
|
||||||
|
echo "${OK} - ${MAGENTA}KooL${RESET}.. lets continue with the installation..."
|
||||||
|
|
||||||
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
|
||||||
if ! pacman -Qs pciutils > /dev/null; then
|
if ! pacman -Qs pciutils > /dev/null; then
|
||||||
echo "pciutils is not installed. Installing..."
|
echo "${NOTE} - pciutils is not installed. Installing..."
|
||||||
sudo pacman -S --noconfirm pciutils
|
sudo pacman -S --noconfirm pciutils
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Function to colorize prompts
|
if ! command -v whiptail >/dev/null; then
|
||||||
colorize_prompt() {
|
echo "${NOTE} - whiptail is not installed. Installing..."
|
||||||
local color="$1"
|
sudo pacman -S --noconfirm whiptail
|
||||||
local message="$2"
|
printf "\n%.0s" {1..1}
|
||||||
echo -n "${color}${message}$(tput sgr0)"
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="install-$(date +%d-%H%M%S).log"
|
LOG="install-$(date +%d-%H%M%S).log"
|
||||||
|
|
||||||
|
|
||||||
# Create Directory for Install Logs
|
# Create Directory for Install Logs
|
||||||
if [ ! -d Install-Logs ]; then
|
if [ ! -d Install-Logs ]; then
|
||||||
mkdir Install-Logs
|
mkdir Install-Logs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define the directory where your scripts are located
|
# Path to the install-scripts directory
|
||||||
script_directory=install-scripts
|
script_directory=install-scripts
|
||||||
|
|
||||||
# Function to ask a yes/no question and set the response in a variable
|
|
||||||
ask_yes_no() {
|
|
||||||
if [[ ! -z "${!2}" ]]; then
|
|
||||||
echo "$(colorize_prompt "$CAT" "$1 (Preset): ${!2}")"
|
|
||||||
if [[ "${!2}" = [Yy] ]]; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
eval "$2=''"
|
|
||||||
fi
|
|
||||||
while true; do
|
|
||||||
read -p "$(colorize_prompt "$CAT" "$1 (y/n): ")" choice
|
|
||||||
case "$choice" in
|
|
||||||
[Yy]* ) eval "$2='Y'"; return 0;;
|
|
||||||
[Nn]* ) eval "$2='N'"; return 1;;
|
|
||||||
* ) echo "Please answer with y or n.";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to ask a custom question with specific options and set the response in a variable
|
|
||||||
ask_custom_option() {
|
|
||||||
local prompt="$1"
|
|
||||||
local valid_options="$2"
|
|
||||||
local response_var="$3"
|
|
||||||
|
|
||||||
if [[ ! -z "${!3}" ]]; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
eval "$3=''"
|
|
||||||
fi
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
read -p "$(colorize_prompt "$CAT" "$prompt ($valid_options): ")" choice
|
|
||||||
if [[ " $valid_options " == *" $choice "* ]]; then
|
|
||||||
eval "$response_var='$choice'"
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
echo "Please choose one of the provided options: $valid_options"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
# Function to execute a script if it exists and make it executable
|
# Function to execute a script if it exists and make it executable
|
||||||
execute_script() {
|
execute_script() {
|
||||||
local script="$1"
|
local script="$1"
|
||||||
@@ -169,7 +123,7 @@ execute_script() {
|
|||||||
if [ -f "$script_path" ]; then
|
if [ -f "$script_path" ]; then
|
||||||
chmod +x "$script_path"
|
chmod +x "$script_path"
|
||||||
if [ -x "$script_path" ]; then
|
if [ -x "$script_path" ]; then
|
||||||
env USE_PRESET=$use_preset "$script_path"
|
env "$script_path"
|
||||||
else
|
else
|
||||||
echo "Failed to make script '$script' executable."
|
echo "Failed to make script '$script' executable."
|
||||||
fi
|
fi
|
||||||
@@ -178,181 +132,275 @@ execute_script() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Collect user responses to all questions
|
#################
|
||||||
# Check if nvidia is present
|
# Default values for the options (will be overwritten by preset file if available)
|
||||||
if lspci | grep -i "nvidia" &> /dev/null; then
|
gtk_themes="OFF"
|
||||||
printf "\n"
|
bluetooth="OFF"
|
||||||
printf "${INFO} ${YELLOW}NVIDIA GPU${RESET} detected in your system \n"
|
thunar="OFF"
|
||||||
printf "${NOTE} Script will install ${YELLOW}nvidia-dkms nvidia-utils and nvidia-settings${RESET} \n"
|
ags="OFF"
|
||||||
ask_yes_no "-Do you want script to configure ${YELLOW}NVIDIA${RESET} for you?" nvidia
|
sddm="OFF"
|
||||||
|
sddm_theme="OFF"
|
||||||
|
xdph="OFF"
|
||||||
|
zsh="OFF"
|
||||||
|
pokemon="OFF"
|
||||||
|
rog="OFF"
|
||||||
|
dots="OFF"
|
||||||
|
input_group="OFF"
|
||||||
|
nvidia="OFF"
|
||||||
|
nouveau="OFF"
|
||||||
|
|
||||||
|
# Function to load preset file
|
||||||
|
load_preset() {
|
||||||
|
if [ -f "$1" ]; then
|
||||||
|
# Source the preset file
|
||||||
|
source "$1"
|
||||||
|
echo "${NOTE} - Preset file loaded successfully."
|
||||||
|
else
|
||||||
|
echo "${INFO} - Preset file not found. Using default values."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if --preset argument is passed
|
||||||
|
if [[ "$1" == "--preset" && -n "$2" ]]; then
|
||||||
|
load_preset "$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$nvidia" == "Y" ]]; then
|
|
||||||
ask_yes_no "-Would you like to ${YELLOW}blacklist nouveau?${RESET}" nouveau
|
|
||||||
fi
|
|
||||||
|
|
||||||
# AUR helper
|
# List of services to check for active login managers
|
||||||
if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then
|
services=("gdm.service" "gdm3.service" "lightdm.service" "lxdm.service")
|
||||||
printf "\n"
|
|
||||||
ask_custom_option "-Which ${YELLOW}AUR helper${RESET} would you like to use? (paru or yay): " "paru or yay" aur_helper
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\n"
|
# Function to check if any login services are active
|
||||||
ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes
|
check_services_running() {
|
||||||
|
|
||||||
printf "\n"
|
|
||||||
ask_yes_no "-Do you want to configure ${YELLOW}Bluetooth${RESET}?" bluetooth
|
|
||||||
|
|
||||||
printf "\n"
|
|
||||||
ask_yes_no "-Do you want to install ${YELLOW}Thunar file manager${RESET}?" thunar
|
|
||||||
|
|
||||||
if [[ "$thunar" == "Y" ]]; then
|
|
||||||
ask_yes_no "-Set ${YELLOW}Thunar${RESET} as the default file manager?" thunar_choice
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Input group
|
|
||||||
printf "\n"
|
|
||||||
if ! groups "$(whoami)" | grep -q '\binput\b'; then
|
|
||||||
printf "${NOTE} adding to ${YELLOW}input${RESET} group might be necessary for ${YELLOW}waybar keyboard-state functionality${RESET} \n"
|
|
||||||
ask_yes_no "-Would you like to be added to the ${YELLOW}input${RESET} group?" input_group
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\n"
|
|
||||||
printf "${NOTE} ${YELLOW}AGS Desktop Overview DEMO link${RESET} on README\n"
|
|
||||||
ask_yes_no "-Install ${YELLOW}AGS (aylur's GTK shell) v1${RESET} for Desktop-Like Overview?" ags
|
|
||||||
|
|
||||||
printf "\n"
|
|
||||||
ask_yes_no "-Install & configure ${YELLOW}SDDM${RESET} as login manager?" sddm
|
|
||||||
# check if any known login managers are active when users choose to install sddm
|
|
||||||
if [ "$sddm" == "y" ] || [ "$sddm" == "Y" ]; then
|
|
||||||
# List of services to check
|
|
||||||
services=("gdm.service" "gdm3.service" "lightdm.service" "lxdm.service")
|
|
||||||
|
|
||||||
# Loop through each service
|
|
||||||
for svc in "${services[@]}"; do
|
for svc in "${services[@]}"; do
|
||||||
if systemctl is-active --quiet "$svc"; then
|
if systemctl is-active --quiet "$svc"; then
|
||||||
echo "${ERROR} ${MAGENTA}$svc${RESET} is active. stop or disable it first or ${YELLOW}DO NOT choose SDDM${RESET} to install."
|
return 0
|
||||||
echo "${NOTE} If you have GDM, no need to install SDDM. GDM will work fine as Login Manager for Hyprland."
|
|
||||||
printf "\n%.0s" {1..2}
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
return 1
|
||||||
if [[ "$sddm" == "Y" ]]; then
|
}
|
||||||
ask_yes_no "-Download and Install ${YELLOW}SDDM Theme?${RESET} " sddm_theme
|
|
||||||
|
# Check if yay or paru is installed
|
||||||
|
echo "${INFO} - Checking if yay or paru is installed"
|
||||||
|
if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then
|
||||||
|
echo "${CAT} - Neither yay nor paru found. Asking for selection..."
|
||||||
|
while true; do
|
||||||
|
aur_helper=$(whiptail --title "Neither Yay nor Paru is installed" --checklist "Choose ONE helper ONLY!\nNOTE: spacebar to select" 10 60 2 \
|
||||||
|
"yay" "AUR Helper yay" "OFF" \
|
||||||
|
"paru" "AUR Helper paru" "OFF" \
|
||||||
|
3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
if [ -z "$aur_helper" ]; then
|
||||||
|
echo "${OK} - You cancelled the selection. ${YELLOW}Goodbye!${RESET}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${INFO} - You selected: $aur_helper as your AUR helper"
|
||||||
|
|
||||||
|
aur_helper=$(echo "$aur_helper" | tr -d '"')
|
||||||
|
|
||||||
|
if [[ -z "$aur_helper" || $(echo "$aur_helper" | wc -w) -ne 1 ]]; then
|
||||||
|
whiptail --title "Error" --msgbox "You must select at least one AUR helper." 10 60 2
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "${NOTE} - AUR helper is already installed. Skipping AUR helper selection."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n"
|
# Check if NVIDIA GPU is detected
|
||||||
ask_yes_no "-Install ${YELLOW}XDG-DESKTOP-PORTAL-HYPRLAND?${RESET} (For proper Screen Share, e.g., OBS)" xdph
|
nvidia_detected=false
|
||||||
|
if lspci | grep -i "nvidia" &> /dev/null; then
|
||||||
printf "\n"
|
nvidia_detected=true
|
||||||
ask_yes_no "-Install ${YELLOW}zsh${RESET} with ${YELLOW}oh-my-zsh?${RESET}" zsh
|
whiptail --title "NVIDIA GPU Detected" --msgbox "NVIDIA GPU detected in your system.\n\nNOTE: The script will install nvidia-dkms, nvidia-utils, and nvidia-settings if you choose to configure." 12 60
|
||||||
|
|
||||||
if [[ "$zsh" == "Y" ]]; then
|
|
||||||
ask_yes_no "-Add ${YELLOW}Pokemon color scripts?${RESET} in your terminal?" pokemon_choice
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n"
|
# Initialize the options command for whiptail checklist
|
||||||
ask_yes_no "-Installing on ${YELLOW}Asus ROG laptops?${RESET}" rog
|
options_command="whiptail --title 'Select Options' --checklist 'Choose options to install or configure\nNOTE: spacebar to select' 28 85 20"
|
||||||
|
|
||||||
printf "\n"
|
# Add NVIDIA options to the checklist if NVIDIA GPU is detected
|
||||||
ask_yes_no "-Do you want to add pre-configured ${YELLOW}KooL's Hyprland dotfiles?${RESET}" dots
|
if [ "$nvidia_detected" == "true" ]; then
|
||||||
|
options_command+=" \
|
||||||
|
'nvidia' 'Do you want script to configure NVIDIA GPU?' 'OFF' \
|
||||||
|
'nouveau' 'Do you want Nouveau to be blacklisted?' 'OFF' "
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\n"
|
# Check if user is already in the 'input' group
|
||||||
|
input_group_detected=false
|
||||||
|
if ! groups "$(whoami)" | grep -q '\binput\b'; then
|
||||||
|
input_group_detected=true
|
||||||
|
whiptail --title "Input Group" --msgbox "You are not currently in the input group.\n\nAdding you to the input group might be necessary for the Waybar keyboard-state functionality." 12 60
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add 'input_group' option if user is not in the 'input' group
|
||||||
|
if [ "$input_group_detected" == "true" ]; then
|
||||||
|
options_command+=" \
|
||||||
|
'input_group' 'Add your USER to input group for some waybar functionality?' 'OFF' "
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add the rest of your options here (including AUR helper option)
|
||||||
|
options_command+=" \
|
||||||
|
'gtk_themes' 'Install GTK themes (required for Dark/Light function)' 'OFF' \
|
||||||
|
'bluetooth' 'Do you want script to configure Bluetooth?' 'OFF' \
|
||||||
|
'thunar' 'Do you want Thunar file manager to be installed?' 'OFF' \
|
||||||
|
'ags' 'Install AGS v1 for Desktop-Like Overview' 'OFF' \
|
||||||
|
'sddm' 'Install & configure SDDM login manager?' 'OFF' \
|
||||||
|
'sddm_theme' 'Download & Install Additional SDDM theme?' 'OFF' \
|
||||||
|
'xdph' 'Install XDG-DESKTOP-PORTAL-HYPRLAND (for screen share)?' 'OFF' \
|
||||||
|
'zsh' 'Install zsh shell with Oh-My-Zsh?' 'OFF' \
|
||||||
|
'pokemon' 'Add Pokemon color scripts to your terminal?' 'OFF' \
|
||||||
|
'rog' 'Are you installing on Asus ROG laptops?' 'OFF' \
|
||||||
|
'dots' 'Download and install pre-configured KooL Hyprland dotfiles?' 'OFF'"
|
||||||
|
|
||||||
|
# Execute the options checklist and capture the selected options
|
||||||
|
selected_options=$(eval "$options_command" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
|
# Check if the user pressed Cancel (exit status 1)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "${NOTE} - You cancelled the selection. ${YELLOW}Goodbye!${RESET}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clean up the selected options (remove quotes and trim spaces)
|
||||||
|
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
||||||
|
|
||||||
|
# Convert selected options into an array
|
||||||
|
IFS=' ' read -r -a options <<< "$selected_options"
|
||||||
|
|
||||||
|
# Prepare Confirmation Message
|
||||||
|
confirm_message="You have selected the following options:\n\n"
|
||||||
|
for option in "${options[@]}"; do
|
||||||
|
confirm_message+=" - $option\n"
|
||||||
|
done
|
||||||
|
|
||||||
|
confirm_message+="\nDo you want to proceed with these choices?"
|
||||||
|
|
||||||
|
# Show Confirmation Dialog
|
||||||
|
dialog --title "Confirm Your Choices" --yesno "$confirm_message" 20 80
|
||||||
|
|
||||||
|
# If the user cancels, show the checklist again
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "${NOTE} - You cancelled the confirmation. Returning to option selection..."
|
||||||
|
exec "$0"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If user confirms
|
||||||
|
echo "${OK} - Proceeding with selected options..."
|
||||||
|
|
||||||
|
|
||||||
# Ensuring all in the scripts folder are made executable
|
|
||||||
chmod +x install-scripts/*
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
# Ensuring base-devel is installed
|
# Ensuring base-devel is installed
|
||||||
execute_script "00-base.sh"
|
execute_script "00-base.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "pacman.sh"
|
execute_script "pacman.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
# Execute AUR helper script based on user choice
|
|
||||||
|
# Execute AUR helper script after other installations if applicable
|
||||||
if [ "$aur_helper" == "paru" ]; then
|
if [ "$aur_helper" == "paru" ]; then
|
||||||
execute_script "paru.sh"
|
execute_script "paru.sh"
|
||||||
elif [ "$aur_helper" == "yay" ]; then
|
elif [ "$aur_helper" == "yay" ]; then
|
||||||
execute_script "yay.sh"
|
execute_script "yay.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install hyprland packages
|
sleep 1
|
||||||
|
|
||||||
|
# Run the Hyprland related scripts
|
||||||
|
echo "Installing KooL Hyprland additional packages..."
|
||||||
|
sleep 1
|
||||||
execute_script "01-hypr-pkgs.sh"
|
execute_script "01-hypr-pkgs.sh"
|
||||||
|
|
||||||
# Install pipewire and pipewire-audio
|
echo "Installing pipewire and pipewire-audio..."
|
||||||
|
sleep 1
|
||||||
execute_script "pipewire.sh"
|
execute_script "pipewire.sh"
|
||||||
|
|
||||||
# Install necessary fonts
|
echo "Installing necessary fonts..."
|
||||||
|
sleep 1
|
||||||
execute_script "fonts.sh"
|
execute_script "fonts.sh"
|
||||||
|
|
||||||
# Install hyprland
|
echo "Installing Hyprland..."
|
||||||
|
sleep 1
|
||||||
execute_script "hyprland.sh"
|
execute_script "hyprland.sh"
|
||||||
|
|
||||||
if [ "$nvidia" == "Y" ]; then
|
# Clean up the selected options (remove quotes and trim spaces)
|
||||||
execute_script "nvidia.sh"
|
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
||||||
fi
|
|
||||||
if [ "$nouveau" == "Y" ]; then
|
|
||||||
execute_script "nvidia_nouveau.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$gtk_themes" == "Y" ]; then
|
# Convert selected options into an array (splitting by spaces)
|
||||||
execute_script "gtk_themes.sh"
|
IFS=' ' read -r -a options <<< "$selected_options"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$bluetooth" == "Y" ]; then
|
# Loop through selected options
|
||||||
execute_script "bluetooth.sh"
|
for option in "${options[@]}"; do
|
||||||
fi
|
case "$option" in
|
||||||
|
sddm)
|
||||||
if [ "$thunar" == "Y" ]; then
|
if check_services_running; then
|
||||||
execute_script "thunar.sh"
|
# If any log in managers are active
|
||||||
fi
|
whiptail --title "Error" --msgbox "One of the following login services is running:\n$(IFS=$'\n'; echo "${services[*]}")\n\nPlease stop it or DO not choose SDDM." 12 60
|
||||||
if [ "$thunar_choice" == "Y" ]; then
|
exec "$0"
|
||||||
execute_script "thunar_default.sh"
|
else
|
||||||
fi
|
echo "Installing and configuring SDDM..."
|
||||||
|
|
||||||
if [ "$ags" == "Y" ]; then
|
|
||||||
execute_script "ags.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$sddm" == "Y" ]; then
|
|
||||||
execute_script "sddm.sh"
|
execute_script "sddm.sh"
|
||||||
fi
|
fi
|
||||||
if [ "$sddm_theme" == "Y" ]; then
|
;;
|
||||||
execute_script "sddm_theme.sh"
|
nvidia)
|
||||||
fi
|
echo "Configuring nvidia stuff"
|
||||||
|
execute_script "nvidia.sh"
|
||||||
if [ "$xdph" == "Y" ]; then
|
;;
|
||||||
execute_script "xdph.sh"
|
nouveau)
|
||||||
fi
|
echo "blacklisting nouveau"
|
||||||
|
execute_script "nvidia_nouveau.sh"
|
||||||
if [ "$zsh" == "Y" ]; then
|
;;
|
||||||
execute_script "zsh.sh"
|
gtk_themes)
|
||||||
fi
|
echo "Installing GTK themes..."
|
||||||
if [ "$pokemon_choice" == "Y" ]; then
|
execute_script "gtk_themes.sh"
|
||||||
execute_script "zsh_pokemon.sh"
|
;;
|
||||||
fi
|
input_group)
|
||||||
|
echo "Adding user into input group..."
|
||||||
if [ "$input_group" == "Y" ]; then
|
|
||||||
execute_script "InputGroup.sh"
|
execute_script "InputGroup.sh"
|
||||||
fi
|
;;
|
||||||
|
ags)
|
||||||
if [ "$rog" == "Y" ]; then
|
echo "Installing AGS..."
|
||||||
execute_script "rog.sh"
|
execute_script "ags.sh"
|
||||||
fi
|
;;
|
||||||
|
xdph)
|
||||||
if [ "$dots" == "Y" ]; then
|
echo "Installing XDG-DESKTOP-PORTAL-HYPRLAND..."
|
||||||
|
execute_script "xdph.sh"
|
||||||
|
;;
|
||||||
|
bluetooth)
|
||||||
|
echo "Configuring Bluetooth..."
|
||||||
|
execute_script "bluetooth.sh"
|
||||||
|
;;
|
||||||
|
thunar)
|
||||||
|
echo "Installing Thunar file manager..."
|
||||||
|
execute_script "thunar.sh"
|
||||||
|
;;
|
||||||
|
sddm_theme)
|
||||||
|
echo "Downloading & Installing Additional SDDM theme..."
|
||||||
|
execute_script "sddm_theme.sh"
|
||||||
|
;;
|
||||||
|
zsh)
|
||||||
|
echo "Installing zsh with Oh-My-Zsh..."
|
||||||
|
execute_script "zsh.sh"
|
||||||
|
;;
|
||||||
|
pokemon)
|
||||||
|
echo "Adding Pokemon color scripts to terminal..."
|
||||||
|
execute_script "zsh_pokemon.sh"
|
||||||
|
;;
|
||||||
|
dots)
|
||||||
|
echo "Installing pre-configured Hyprland dotfiles..."
|
||||||
execute_script "dotfiles-main.sh"
|
execute_script "dotfiles-main.sh"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown option: $option"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
fi
|
sleep 1
|
||||||
|
|
||||||
clear
|
|
||||||
|
|
||||||
# copy fastfetch config if arch.png is not present
|
# copy fastfetch config if arch.png is not present
|
||||||
if [ ! -f "$HOME/.config/fastfetch/arch.png" ]; then
|
if [ ! -f "$HOME/.config/fastfetch/arch.png" ]; then
|
||||||
cp -r assets/fastfetch "$HOME/.config/"
|
cp -r assets/fastfetch "$HOME/.config/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clear
|
||||||
|
|
||||||
# final check essential packages if it is installed
|
# final check essential packages if it is installed
|
||||||
execute_script "02-Final-Check.sh"
|
execute_script "02-Final-Check.sh"
|
||||||
|
|
||||||
|
|||||||
39
preset.sh
39
preset.sh
@@ -1,55 +1,48 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# CREDIT to: https://github.com/PostCyberPunk for this Preset function
|
|
||||||
|
|
||||||
## -- Make sure you use the right answer or install script will fail ###
|
# Define the options you want to preselect (either ON or OFF)
|
||||||
# The rest Change to Y for Yes and N for No.
|
# IMPORTANT: answer should be inside ""
|
||||||
|
|
||||||
### Script will install nvidia-dkms nvidia-utils & nvidia-settings
|
### Script will install nvidia-dkms nvidia-utils & nvidia-settings
|
||||||
###-Would you like script to Configure NVIDIA for you?
|
###-Would you like script to Configure NVIDIA for you?
|
||||||
nvidia="N"
|
nvidia="ON"
|
||||||
### Would you like to blacklist nouveau? (y/n)
|
### Would you like to blacklist nouveau? (y/n)
|
||||||
nouveau="N"
|
nouveau="ON"
|
||||||
|
|
||||||
### yay or paru
|
|
||||||
aur_helper="yay"
|
|
||||||
|
|
||||||
###-Install GTK themes (required for Dark/Light function)?
|
###-Install GTK themes (required for Dark/Light function)?
|
||||||
gtk_themes="Y"
|
gtk_themes="ON"
|
||||||
|
|
||||||
###-Do you want to configure Bluetooth?
|
###-Do you want to configure Bluetooth?
|
||||||
bluetooth="Y"
|
bluetooth="ON"
|
||||||
|
|
||||||
###-Do you want to install Thunar file manager?
|
###-Do you want to install Thunar file manager?
|
||||||
thunar="Y"
|
thunar="ON"
|
||||||
### Do you want to set Thunar as the default file manager?
|
|
||||||
thunar_choice="Y"
|
|
||||||
|
|
||||||
|
|
||||||
### Adding user to the 'input' group might be necessary for waybar keyboard-state functionality
|
### Adding user to the 'input' group might be necessary for waybar keyboard-state functionality
|
||||||
input_group="Y"
|
input_group="ON"
|
||||||
|
|
||||||
### Desktop overview Demo Link in README
|
### Desktop overview Demo Link in README
|
||||||
### Desktop overview Demo Link in README
|
### Desktop overview Demo Link in README
|
||||||
### Install AGS (aylur's GTK shell) v1 for Desktop-Like Overview?"
|
### Install AGS (aylur's GTK shell) v1 for Desktop-Like Overview?"
|
||||||
ags="Y"
|
ags="ON"
|
||||||
|
|
||||||
###-Install & configure SDDM log-in Manager
|
###-Install & configure SDDM log-in Manager
|
||||||
sddm="Y"
|
sddm="ON"
|
||||||
### install and download SDDM themes
|
### install and download SDDM themes
|
||||||
sddm_theme="Y"
|
sddm_theme="ON"
|
||||||
|
|
||||||
###-Install XDG-DESKTOP-PORTAL-HYPRLAND? (For proper Screen Share ie OBS)
|
###-Install XDG-DESKTOP-PORTAL-HYPRLAND? (For proper Screen Share ie OBS)
|
||||||
xdph="Y"
|
xdph="ON"
|
||||||
|
|
||||||
### Shell extension. Bash alternative
|
### Shell extension. Bash alternative
|
||||||
###-Install zsh, oh-my-zsh
|
###-Install zsh, oh-my-zsh
|
||||||
zsh="Y"
|
zsh="ON"
|
||||||
### add Pokemon color scripts to terminal
|
### add Pokemon color scripts to terminal
|
||||||
pokemon_choice="Y"
|
pokemon="ON"
|
||||||
|
|
||||||
### This will install ASUSCTL & SUPERGFXCTL
|
### This will install ASUSCTL & SUPERGFXCTL
|
||||||
###-Installing on Asus ROG Laptops?
|
###-Installing on Asus ROG Laptops?
|
||||||
rog="N"
|
rog="ON"
|
||||||
|
|
||||||
###-Download and Add pre-configured Hyprland dotfiles?
|
###-Download and Add pre-configured Hyprland dotfiles?
|
||||||
dots="Y"
|
dots="ON"
|
||||||
|
|||||||
Reference in New Issue
Block a user