mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
updated Readme showcase
This commit is contained in:
parent
195970bcbc
commit
e577bf8bf4
@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/JaKooLit/Hyprland-Dots/tree/Deb-Untu-old-v-Hyprland"><kbd> <br> Hyprland-Dots Debian repo <br> </kbd></a>  
|
<a href="https://github.com/JaKooLit/Hyprland-Dots/tree/Deb-Untu-Dots"><kbd> <br> Hyprland-Dots Debian repo <br> </kbd></a>  
|
||||||
<a href="https://www.youtube.com/playlist?list=PLDtGd5Fw5_GjXCznR0BzCJJDIQSZJRbxx"><kbd> <br> Youtube <br> </kbd></a>  
|
<a href="https://www.youtube.com/playlist?list=PLDtGd5Fw5_GjXCznR0BzCJJDIQSZJRbxx"><kbd> <br> Youtube <br> </kbd></a>  
|
||||||
<a href="https://github.com/JaKooLit/Hyprland-Dots/wiki"><kbd> <br> Wiki <br> </kbd></a>  
|
<a href="https://github.com/JaKooLit/Hyprland-Dots/wiki"><kbd> <br> Wiki <br> </kbd></a>  
|
||||||
<a href="https://github.com/JaKooLit/Hyprland-Dots/wiki/Keybinds"><kbd> <br> Keybinds <br> </kbd></a>  
|
<a href="https://github.com/JaKooLit/Hyprland-Dots/wiki/Keybinds"><kbd> <br> Keybinds <br> </kbd></a>  
|
||||||
@ -149,7 +149,7 @@ sudo nano /etc/apt/sources.list
|
|||||||
- inside the install-scripts directory, you can edit 01-hypr-pkgs.sh. Do not edit 00-dependencies.sh unless you know what you are doing. Care though as the Hyprland Dots may not work properly!
|
- inside the install-scripts directory, you can edit 01-hypr-pkgs.sh. Do not edit 00-dependencies.sh unless you know what you are doing. Care though as the Hyprland Dots may not work properly!
|
||||||
|
|
||||||
#### 💫 SDDM and GTK Themes offered
|
#### 💫 SDDM and GTK Themes offered
|
||||||
- If you opted to install SDDM theme, here's the [`LINK`](https://github.com/JaKooLit/simple-sddm)
|
- If you opted to install SDDM theme, here's the [`LINK`](https://codeberg.org/JaKooLit/sddm-sequoia) which is a fork of [`LINK`](https://codeberg.org/minMelody/sddm-sequoia)
|
||||||
- If you opted to install GTK Themes, Icons, here's the [`LINK`](https://github.com/JaKooLit/GTK-themes-icons). This also includes Bibata Modern Ice cursor.
|
- If you opted to install GTK Themes, Icons, here's the [`LINK`](https://github.com/JaKooLit/GTK-themes-icons). This also includes Bibata Modern Ice cursor.
|
||||||
|
|
||||||
#### 🔔 NOTICE TO NVIDIA OWNERS ###
|
#### 🔔 NOTICE TO NVIDIA OWNERS ###
|
||||||
|
|||||||
@ -2,11 +2,6 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Global Functions for Scripts #
|
# Global Functions for Scripts #
|
||||||
|
|
||||||
# Create Directory for Install Logs
|
|
||||||
if [ ! -d Install-Logs ]; then
|
|
||||||
mkdir Install-Logs
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Set some colors for output messages
|
# Set some colors for output messages
|
||||||
@ -25,36 +20,63 @@ BLUE="$(tput setaf 4)"
|
|||||||
SKY_BLUE="$(tput setaf 6)"
|
SKY_BLUE="$(tput setaf 6)"
|
||||||
RESET="$(tput sgr0)"
|
RESET="$(tput sgr0)"
|
||||||
|
|
||||||
|
# Create Directory for Install Logs
|
||||||
|
if [ ! -d Install-Logs ]; then
|
||||||
|
mkdir Install-Logs
|
||||||
|
fi
|
||||||
|
|
||||||
# Function for installing packages
|
# Function that would show a progress
|
||||||
install_package() {
|
show_progress() {
|
||||||
# Checking if package is already installed
|
local pid=$1
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
local package_name=$2
|
||||||
echo -e "${OK} $1 is already installed. Skipping..."
|
local spin_chars=("●○○○○○" "○●○○○○" "○○●○○○" "○○○●○○" "○○○○●○" "○○○○○●" \
|
||||||
|
"○○○○●○" "○○○●○○" "○○●○○○" "○●○○○○") # Growing & Shrinking Dots
|
||||||
|
local i=0
|
||||||
|
|
||||||
|
tput civis # Hide cursor
|
||||||
|
printf "\r${NOTE} Installing ${YELLOW}%s${RESET} ..." "$package_name"
|
||||||
|
|
||||||
|
while ps -p $pid &> /dev/null; do
|
||||||
|
printf "\r${NOTE} Installing ${YELLOW}%s${RESET} %s" "$package_name" "${spin_chars[i]}"
|
||||||
|
i=$(( (i + 1) % 10 ))
|
||||||
|
sleep 0.3
|
||||||
|
done
|
||||||
|
|
||||||
|
printf "\r${NOTE} Installing ${YELLOW}%s${RESET} ... Done!%-20s\n" "$package_name" ""
|
||||||
|
tput cnorm
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Function for re-installing packages with a progress bar
|
||||||
|
re_install_package() {
|
||||||
|
echo -e "${NOTE} Force installing ${YELLOW}$1${RESET} ..."
|
||||||
|
|
||||||
|
# Run the reinstall command in the background
|
||||||
|
(
|
||||||
|
stdbuf -oL sudo apt-get install --reinstall -y "$1" 2>&1
|
||||||
|
) >> "$LOG" 2>&1 &
|
||||||
|
PID=$!
|
||||||
|
show_progress $PID "$1"
|
||||||
|
|
||||||
|
# Double check if the package was re-installed successfully
|
||||||
|
if dpkg -l | grep -q -w "$1"; then
|
||||||
|
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully re-installed!"
|
||||||
else
|
else
|
||||||
# Package not installed
|
# Package was not found, installation failed
|
||||||
echo -e "${NOTE} Installing $1 ..."
|
echo -e "${ERROR} $1 failed to re-install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||||
sudo apt-get install -y "$1" 2>&1 | tee -a "$LOG"
|
|
||||||
# Making sure the package is installed
|
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
|
||||||
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully installed!"
|
|
||||||
else
|
|
||||||
# Something is missing, exiting to review the log
|
|
||||||
echo -e "\e[1A\e[K${ERROR} $1 failed to install :( , please check the install.log. You may need to install manually! Sorry, I have tried :("
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function for re-installing packages
|
# Function for re-installing packages
|
||||||
re_install_package() {
|
re_install_package() {
|
||||||
echo -e "${NOTE} Force installing $1 ..."
|
echo -e "${NOTE} Force installing ${YELLOW}$1${RESET} ..."
|
||||||
|
|
||||||
# Try to reinstall the package
|
# Try to reinstall the package
|
||||||
if sudo apt-get install --reinstall -y "$1" 2>&1 | tee -a "$LOG"; then
|
if sudo apt-get install --reinstall -y "$1" 2>&1 | tee -a "$LOG"; then
|
||||||
# Check if the package was installed successfully
|
# Check if the package was installed successfully
|
||||||
if dpkg -l | grep -q -w "$1"; then
|
if dpkg -l | grep -q -w "$1"; then
|
||||||
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully installed!"
|
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully re-installed!"
|
||||||
else
|
else
|
||||||
# Package was not found, installation failed
|
# Package was not found, installation failed
|
||||||
echo -e "${ERROR} $1 failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
echo -e "${ERROR} $1 failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||||
@ -71,14 +93,14 @@ uninstall_package() {
|
|||||||
# Check if package is installed
|
# Check if package is installed
|
||||||
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
||||||
# Package is installed, attempt to uninstall
|
# Package is installed, attempt to uninstall
|
||||||
echo -e "${NOTE} Uninstalling $1 ..."
|
echo -e "${NOTE} Uninstalling ${YELLOW}$1${RESET} ..."
|
||||||
|
|
||||||
# Attempt to uninstall the package and its configuration files
|
# Attempt to uninstall the package and its configuration files
|
||||||
sudo apt-get autoremove -y "$1" >> "$LOG" 2>&1
|
sudo apt-get autoremove -y "$1" >> "$LOG" 2>&1
|
||||||
|
|
||||||
# Check if the package is still installed after removal attempt
|
# Check if the package is still installed after removal attempt
|
||||||
if ! dpkg -l | grep -q -w "^ii $1" ; then
|
if ! dpkg -l | grep -q -w "^ii $1" ; then
|
||||||
echo -e "\e[1A\e[K${OK} $1 was uninstalled."
|
echo -e "\e[1A\e[K${OK} ${MAGENTA}$1${RESET} was uninstalled."
|
||||||
else
|
else
|
||||||
echo -e "\e[1A\e[K${ERROR} $1 failed to uninstall. Please check the uninstall.log."
|
echo -e "\e[1A\e[K${ERROR} $1 failed to uninstall. Please check the uninstall.log."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@ -1,16 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Aylur's GTK Shell v 1.9.0 #
|
# Aylur's GTK Shell #
|
||||||
# for desktop overview
|
|
||||||
|
|
||||||
# Check if AGS is installed
|
|
||||||
if command -v ags &>/dev/null; then
|
|
||||||
AGS_VERSION=$(ags -v | awk '{print $NF}')
|
|
||||||
if [[ "$AGS_VERSION" == "1.9.0" ]]; then
|
|
||||||
echo -e "${OK} ${MAGENTA}Aylur's GTK Shell v1.9.0${RESET} is already installed. Skipping installation."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
ags=(
|
ags=(
|
||||||
node-typescript
|
node-typescript
|
||||||
@ -43,24 +33,21 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log"
|
||||||
MLOG="install-$(date +%d-%H%M%S)_ags2.log"
|
MLOG="install-$(date +%d-%H%M%S)_ags2.log"
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
|
||||||
|
|
||||||
# Installation of main components
|
|
||||||
printf "\n%s - Installing ${BLUE}Aylur's GTK shell $ags_tag${RESET} Dependencies \n" "${NOTE}"
|
|
||||||
|
|
||||||
# Installing ags Dependencies
|
# Installing ags Dependencies
|
||||||
for PKG1 in "${ags[@]}"; do
|
for PKG1 in "${ags[@]}"; do
|
||||||
install_package "$PKG1" "$LOG"
|
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
#install typescript by npm
|
||||||
|
sudo npm install --global typescript 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
# ags v1
|
# ags
|
||||||
printf "${NOTE} Install and Compiling ${BLUE}Aylur's GTK shell $ags_tag${RESET}..\n"
|
|
||||||
|
printf "${NOTE} Install and Compiling Aylurs GTK shell $ags_tag.. \n"
|
||||||
|
|
||||||
# Check if folder exists and remove it
|
# Check if folder exists and remove it
|
||||||
if [ -d "ags" ]; then
|
if [ -d "ags" ]; then
|
||||||
@ -68,26 +55,24 @@ if [ -d "ags" ]; then
|
|||||||
rm -rf "ags"
|
rm -rf "ags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
# Clone nwg-look repository with the specified tag
|
||||||
printf "${INFO} Kindly Standby...cloning and compiling ${BLUE}Aylur's GTK shell $ags_tag${RESET}...\n"
|
|
||||||
printf "\n%.0s" {1..1}
|
|
||||||
# Clone repository with the specified tag and capture git output into MLOG
|
|
||||||
if git clone --recursive -b "$ags_tag" --depth 1 https://github.com/Aylur/ags.git; then
|
if git clone --recursive -b "$ags_tag" --depth 1 https://github.com/Aylur/ags.git; then
|
||||||
cd ags || exit 1
|
cd ags || exit 1
|
||||||
|
# Build and install ags
|
||||||
npm install
|
npm install
|
||||||
meson setup build
|
meson setup build
|
||||||
if sudo meson install -C build 2>&1 | tee -a "$MLOG"; then
|
if sudo meson install -C build 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "\n${OK} ${YELLOW}Aylur's GTK shell $ags_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} ags installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "\n${ERROR} ${YELLOW}Aylur's GTK shell $ags_tag${RESET} Installation failed\n " 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for ags" 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Move logs to Install-Logs directory
|
# Move logs to Install-Logs directory
|
||||||
mv "$MLOG" ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "\n${ERROR} Failed to download ${YELLOW}Aylur's GTK shell $ags_tag${RESET} Please check your connection\n" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Failed to download ags Please check your connection" 2>&1 | tee -a "$LOG"
|
||||||
mv "$MLOG" ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
# Hyprland-Dots to download from main #
|
# Hyprland-Dots to download from main #
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
dots_tag="Deb-Untu-old-v-Hyprland"
|
dots_tag="Deb-Untu-Dots"
|
||||||
|
|
||||||
## 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! ##
|
||||||
|
|
||||||
|
|||||||
155
install.sh
155
install.sh
@ -1,10 +1,26 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# https://github.com/JaKooLit
|
# https://github.com/JaKooLit
|
||||||
|
|
||||||
|
# Set some colors for output messages
|
||||||
|
OK="$(tput setaf 2)[OK]$(tput sgr0)"
|
||||||
|
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"
|
||||||
|
NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)"
|
||||||
|
INFO="$(tput setaf 4)[INFO]$(tput sgr0)"
|
||||||
|
WARN="$(tput setaf 1)[WARN]$(tput sgr0)"
|
||||||
|
CAT="$(tput setaf 6)[ACTION]$(tput sgr0)"
|
||||||
|
MAGENTA="$(tput setaf 5)"
|
||||||
|
ORANGE="$(tput setaf 214)"
|
||||||
|
WARNING="$(tput setaf 1)"
|
||||||
|
YELLOW="$(tput setaf 3)"
|
||||||
|
GREEN="$(tput setaf 2)"
|
||||||
|
BLUE="$(tput setaf 4)"
|
||||||
|
SKY_BLUE="$(tput setaf 6)"
|
||||||
|
RESET="$(tput sgr0)"
|
||||||
|
|
||||||
|
|
||||||
# Check if running as root. If root, script will exit
|
# Check if running as root. If root, script will exit
|
||||||
if [[ $EUID -eq 0 ]]; then
|
if [[ $EUID -eq 0 ]]; then
|
||||||
echo "This script should not be executed as root! Exiting......."
|
echo "This script should ${WARNING}NOT${RESET} be executed as root! Exiting......."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -21,41 +37,42 @@ is_ubuntu() {
|
|||||||
|
|
||||||
# Check if the system is Ubuntu
|
# Check if the system is Ubuntu
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
echo "This script is NOT intended for Ubuntu / Ubuntu Based. Refer to README for the correct link for Ubuntu-Hyprland project."
|
echo "${WARN}This script is ${WARNING}NOT intended for Ubuntu / Ubuntu Based${RESET}. Refer to ${YELLOW}README for the correct link for Ubuntu-Hyprland project${RESET} "
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# ASCII art
|
|
||||||
printf "\n%.0s" {1..3}
|
printf "\n%.0s" {1..3}
|
||||||
echo " | _. |/ _ _ | o _|_ "
|
echo -e "\e[32m | _. |/ _ _ | o _|_ \e[39m"
|
||||||
echo " \_| (_| o |\ (_) (_) |_ | |_ "
|
echo -e "\e[32m \_| (_| o |\ (_) (_) |_ | |_ 2025\e[39m"
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
# Welcome message
|
# Welcome message
|
||||||
echo "$(tput setaf 6)Welcome to JaKooLit's Debian Trixie/SID Hyprland Install Script!$(tput sgr0)"
|
echo "${SKY_BLUE}Welcome to JaKooLit's Debian Trixie/SID Hyprland (2025) Install Script!${RESET}"
|
||||||
echo
|
echo
|
||||||
echo "$(tput setaf 166)ATTENTION: Run a full system update and reboot first!! (Highly Recommended)$(tput sgr0)"
|
echo "${WARNING}ATTENTION: Run a full system update and Reboot first!! (Highly Recommended) ${RESET}"
|
||||||
echo
|
echo
|
||||||
echo "$(tput setaf 3)NOTE: You will be required to answer some questions during the installation!$(tput sgr0)"
|
echo "${YELLOW}NOTE: You will be required to answer some questions during the installation! ${RESET}"
|
||||||
echo
|
echo
|
||||||
echo "$(tput setaf 3)NOTE: If you are installing on a VM, ensure to enable 3D acceleration; otherwise, Hyprland won't start!$(tput sgr0)"
|
echo "${YELLOW}NOTE: If you are installing on a VM, ensure to enable 3D acceleration else Hyprland wont start! ${RESET}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Prompt user to proceed
|
# Prompt user to proceed
|
||||||
read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed
|
read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed
|
||||||
|
|
||||||
if [[ "$proceed" != "y" ]]; then
|
if [ "$proceed" != "y" ]; then
|
||||||
echo "Installation aborted."
|
printf "\n%.0s" {1..2}
|
||||||
|
echo "${INFO} Installation aborted. No changes in your system! ${MAGENTA}Goodbye!!!${RESET} "
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
read -p "$(tput setaf 6)Have you edited your /etc/apt/sources.list? [Very Important] (y/n): $(tput sgr0)" proceed2
|
read -p "${CAT} Have you edited your /etc/apt/sources.list? ${YELLOW}[Very Important else script will fail]${RESET} (y/n): ${RESET}" proceed2
|
||||||
|
|
||||||
if [ "$proceed2" != "y" ]; then
|
if [ "$proceed2" != "y" ]; then
|
||||||
echo "Installation aborted Kindly edit your sources.list first. Refer to readme."
|
echo "Installation aborted! Kindly edit your ${YELLOW}sources.list${RESET} first. Refer to readme."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -64,16 +81,21 @@ if [ ! -d Install-Logs ]; then
|
|||||||
mkdir Install-Logs
|
mkdir Install-Logs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set some colors for output messages
|
# Function to colorize prompts
|
||||||
OK="$(tput setaf 2)[OK]$(tput sgr0)"
|
colorize_prompt() {
|
||||||
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"
|
local color="$1"
|
||||||
NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)"
|
local message="$2"
|
||||||
WARN="$(tput setaf 1)[WARN]$(tput sgr0)"
|
echo -n "${color}${message}$(tput sgr0)"
|
||||||
CAT="$(tput setaf 6)[ACTION]$(tput sgr0)"
|
}
|
||||||
MAGENTA=$(tput setaf 5)
|
|
||||||
WARNING=$(tput setaf 1)
|
printf "\n%.0s" {1..1}
|
||||||
YELLOW=$(tput setaf 3)
|
|
||||||
RESET=$(tput sgr0)
|
# install pciutils if detected not installed. Necessary for detecting GPU
|
||||||
|
if ! dpkg -l | grep -w pciutils > /dev/null; then
|
||||||
|
echo "pciutils is not installed. Installing..."
|
||||||
|
sudo apt-get install -y pciutils
|
||||||
|
fi
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
# Function to colorize prompts
|
# Function to colorize prompts
|
||||||
colorize_prompt() {
|
colorize_prompt() {
|
||||||
@ -85,21 +107,6 @@ colorize_prompt() {
|
|||||||
# 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"
|
||||||
|
|
||||||
# Initialize variables to store user responses
|
|
||||||
bluetooth=""
|
|
||||||
dots=""
|
|
||||||
gtk_themes=""
|
|
||||||
nvidia=""
|
|
||||||
nwg=""
|
|
||||||
rog=""
|
|
||||||
sddm=""
|
|
||||||
thunar=""
|
|
||||||
xdph=""
|
|
||||||
zsh=""
|
|
||||||
|
|
||||||
# Export PKG_CONFIG_PATH for libinput
|
|
||||||
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
|
|
||||||
|
|
||||||
# Define the directory where your scripts are located
|
# Define the directory where your scripts are located
|
||||||
script_directory=install-scripts
|
script_directory=install-scripts
|
||||||
|
|
||||||
@ -149,30 +156,28 @@ execute_script() {
|
|||||||
|
|
||||||
# Collect user responses to all questions
|
# Collect user responses to all questions
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Do you have any nvidia gpu in your system?" nvidia
|
# Check if nvidia is present
|
||||||
|
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
|
||||||
|
fi
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install GTK themes (required for Dark/Light function)?" gtk_themes
|
ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Do you want to configure Bluetooth?" bluetooth
|
ask_yes_no "-Do you want to configure ${YELLOW}Bluetooth${RESET}?" bluetooth
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Do you want to install Thunar file manager?" thunar
|
ask_yes_no "-Do you want to install ${YELLOW}Thunar file manager${RESET}?" thunar
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install AGS (aylur's gtk shell) v1 for Desktop Like Overview?" ags
|
ask_yes_no "-Install ${YELLOW}AGS (aylur's GTK shell) v1${RESET} for Desktop-Like Overview?" ags
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install & configure SDDM log-in Manager plus (OPTIONAL) SDDM Theme?" sddm
|
ask_yes_no "-Install & configure ${YELLOW}SDDM${RESET} login manager, plus (OPTIONAL) SDDM theme?" sddm
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install XDG-DESKTOP-PORTAL-HYPRLAND? (For proper Screen Share ie OBS)" xdph
|
ask_yes_no "-Install ${YELLOW}XDG-DESKTOP-PORTAL-HYPRLAND${RESET}? (For proper Screen Share, e.g., OBS)" xdph
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Install zsh & oh-my-zsh plus (OPTIONAL) pokemon-colorscripts for tty?" zsh
|
ask_yes_no "-Install ${YELLOW}zsh${RESET}, ${YELLOW}oh-my-zsh${RESET} & (Optional) ${YELLOW}pokemon-colorscripts${RESET}?" zsh
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
ask_yes_no "-Installing on ${YELLOW}Asus ROG laptops${RESET}?" rog
|
||||||
# 14 Sep 2024, now in Debian repo
|
|
||||||
#ask_yes_no "-Install nwg-look? (a GTK Theming app - lxappearance-like) WARN! This Package Takes long time to build!" nwg
|
|
||||||
#printf "\n"
|
|
||||||
|
|
||||||
ask_yes_no "-Installing on Asus ROG Laptops?" rog
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
ask_yes_no "-Do you want to download and install pre-configured Hyprland-dotfiles?" 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
|
||||||
@ -180,17 +185,16 @@ chmod +x install-scripts/*
|
|||||||
|
|
||||||
printf "\n%.0s" {1..3}
|
printf "\n%.0s" {1..3}
|
||||||
# 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" ]; then
|
if [ "$sddm" == "y" ] || [ "$sddm" == "Y" ]; then
|
||||||
# List of services to check
|
# List of services to check
|
||||||
services=("gdm.service" "gdm3.service" "lightdm.service" "xdm.service" "lxdm.service")
|
services=("gdm.service" "gdm3.service" "lightdm.service" "xdm.service" "lxdm.service")
|
||||||
|
|
||||||
# Loop through each 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} $svc is active. Please stop or disable it first or do not choose SDDM to install."
|
echo "${ERROR} ${MAGENTA}$svc${RESET} is active. stop or disable it first or ${YELLOW}DO NOT choose SDDM${RESET} to install."
|
||||||
echo "${NOTE} If you have GDM, no need to install SDDM. GDM will work fine as Login Manager for Hyprland."
|
echo "${NOTE} If you have GDM, no need to install SDDM. GDM will work fine as Login Manager for Hyprland."
|
||||||
printf "\n%.0s" {1..3}
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -290,25 +294,40 @@ printf "\n%.0s" {1..1}
|
|||||||
|
|
||||||
# Check if either hyprland or hyprland-git is installed
|
# Check if either hyprland or hyprland-git is installed
|
||||||
if dpkg -l | grep -qw hyprland; then
|
if dpkg -l | grep -qw hyprland; then
|
||||||
printf "\n${OK} Hyprland is installed. However, some essential packages may not be installed Please see above!"
|
printf "\n${OK} Hyprland is installed. However, some essential packages may not be installed. Please see above!"
|
||||||
printf "\n${CAT} Ignore this message if it states 'All essential packages are installed.'\n"
|
printf "\n${CAT} Ignore this message if it states ${YELLOW}All essential packages${RESET} are installed as per above\n"
|
||||||
sleep 2
|
sleep 2
|
||||||
printf "\n${NOTE} You can start Hyprland by typing 'Hyprland' (IF SDDM is not installed) (note the capital H!).\n"
|
printf "\n${NOTE} You can start Hyprland by typing ${MAGENTA}Hyprland${RESET} (IF SDDM is not installed) (note the capital H!).\n"
|
||||||
printf "\n${NOTE} However, it is highly recommended to reboot your system.\n\n"
|
printf "\n${NOTE} However, it is ${YELLOW}highly recommended to reboot${RESET} your system.\n\n"
|
||||||
|
|
||||||
# Prompt user to reboot
|
# Prompt user to reboot
|
||||||
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP
|
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP
|
||||||
|
|
||||||
# Check if the user answered 'y' or 'Y'
|
# Normalize user input to lowercase
|
||||||
if [[ "$HYP" =~ ^[Yy]$ ]]; then
|
HYP=$(echo "$HYP" | tr '[:upper:]' '[:lower:]')
|
||||||
if [[ "$nvidia" == "Y" ]]; then
|
|
||||||
echo "${NOTE} NVIDIA GPU detected. Rebooting the system..."
|
if [[ "$HYP" == "y" || "$HYP" == "yes" ]]; then
|
||||||
|
echo "${INFO} Rebooting now..."
|
||||||
|
reboot # Optionally reboot if the user agrees
|
||||||
|
elif [[ "$HYP" == "n" || "$HYP" == "no" ]]; then
|
||||||
|
echo "${INFO} You can reboot later at any time."
|
||||||
|
else
|
||||||
|
echo "${WARN} Invalid response. Please answer with 'y' or 'n'. Exiting."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
systemctl reboot
|
|
||||||
|
# Check if NVIDIA GPU is present
|
||||||
|
if lspci | grep -i "nvidia" &> /dev/null; then
|
||||||
|
echo "${INFO} ${YELLOW}NVIDIA GPU${RESET} detected. Reminder that you must REBOOT your SYSTEM..."
|
||||||
|
else
|
||||||
|
echo -e "\n${CAT} Thanks for using ${MAGENTA}KooL's Hyprland Dots${RESET}. Enjoy and Have a good day!"
|
||||||
|
printf "\n%.0s" {1..3}
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Print error message if neither package is installed
|
# Print error message if neither package is installed
|
||||||
printf "\n${WARN} Hyprland failed to install. Please check 00_CHECK-time_installed.log and other files Install-Logs/ directory...\n\n"
|
printf "\n${WARN} Hyprland failed to install. Please check 00_CHECK-time_installed.log and other files in the Install-Logs/ directory...\n\n"
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user