mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Use sources repository for hypr* and aquamarine packages, make code safer, add .gitignore to ignore Install-Logs directory's contents
This commit is contained in:
parent
949a18a7d5
commit
3c79ae1fdb
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Install-Logs/*
|
||||||
|
|
||||||
|
!Install-Logs/.gitkeep
|
||||||
0
Install-Logs/.gitkeep
Normal file
0
Install-Logs/.gitkeep
Normal file
@ -45,14 +45,24 @@ hyprland_dep=(
|
|||||||
bc
|
bc
|
||||||
binutils
|
binutils
|
||||||
libc6
|
libc6
|
||||||
libcairo2
|
libcairo2-dev
|
||||||
libdisplay-info2
|
libdisplay-info2
|
||||||
libdrm2
|
libdrm2
|
||||||
libhyprcursor-dev
|
libjpeg-dev
|
||||||
libhyprlang-dev
|
libjxl-dev
|
||||||
libhyprutils-dev
|
libmagic-dev
|
||||||
|
libpixman-1-dev
|
||||||
|
libpugixml-dev
|
||||||
|
libre2-dev
|
||||||
|
librsvg2-dev
|
||||||
|
libspng-dev
|
||||||
|
libtomlplusplus-dev
|
||||||
|
libwebp-dev
|
||||||
|
libzip-dev
|
||||||
libpam0g-dev
|
libpam0g-dev
|
||||||
hyprcursor-util
|
qt6-base-private-dev
|
||||||
|
qt6-wayland-dev
|
||||||
|
qt6-wayland-private-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dep=(
|
build_dep=(
|
||||||
|
|||||||
@ -26,8 +26,8 @@ hypr_package=(
|
|||||||
python3-requests
|
python3-requests
|
||||||
python3-pip
|
python3-pip
|
||||||
qt5ct
|
qt5ct
|
||||||
qt5-style-kvantum
|
qt-style-kvantum
|
||||||
qt5-style-kvantum-themes
|
qt-style-kvantum-themes
|
||||||
qt6ct
|
qt6ct
|
||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
|
|||||||
0
install-scripts/02-pre-cleanup.sh
Normal file → Executable file
0
install-scripts/02-pre-cleanup.sh
Normal file → Executable file
0
install-scripts/03-Final-Check.sh
Normal file → Executable file
0
install-scripts/03-Final-Check.sh
Normal file → Executable file
52
install-scripts/aquamarine.sh
Executable file
52
install-scripts/aquamarine.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyplang #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.8.0"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_aquamarine.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_aquamarine2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}aquamarine dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if aquamarine directory exists and remove it
|
||||||
|
if [ -d "aquamarine" ]; then
|
||||||
|
rm -rf "aquamarine"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}aquamarine $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/aquamarine.git; then
|
||||||
|
cd aquamarine || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target aquamarine -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}aquamarine $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}aquamarine $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}aquamarine $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
2
install-scripts/dotfiles-branch.sh
Normal file → Executable file
2
install-scripts/dotfiles-branch.sh
Normal file → Executable file
@ -23,7 +23,7 @@ printf "${NOTE} Cloning and Installing ${SKY_BLUE}KooL's Hyprland Dots for Debia
|
|||||||
|
|
||||||
# Check if Hyprland-Dots exists
|
# Check if Hyprland-Dots exists
|
||||||
if [ -d Hyprland-Dots-Debian ]; then
|
if [ -d Hyprland-Dots-Debian ]; then
|
||||||
cd Hyprland-Dots-Debian
|
cd Hyprland-Dots-Debian || exit
|
||||||
git stash && git pull
|
git stash && git pull
|
||||||
chmod +x copy.sh
|
chmod +x copy.sh
|
||||||
./copy.sh
|
./copy.sh
|
||||||
|
|||||||
52
install-scripts/hyprcursor.sh
Executable file
52
install-scripts/hyprcursor.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprcursor #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.1.12"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprcursor.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprcursor2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprcursor dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprcursor directory exists and remove it
|
||||||
|
if [ -d "hyprcursor" ]; then
|
||||||
|
rm -rf "hyprcursor"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprcursor $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprcursor.git; then
|
||||||
|
cd hyprcursor || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprcursor $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprcursor $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprcursor $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprcursor" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
52
install-scripts/hyprgraphics.sh
Executable file
52
install-scripts/hyprgraphics.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprgraphics #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.1.3"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprgraphics.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprgraphics2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprgraphics dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprgraphics directory exists and remove it
|
||||||
|
if [ -d "hyprgraphics" ]; then
|
||||||
|
rm -rf "hyprgraphics"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprgraphics $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprgraphics.git; then
|
||||||
|
cd hyprgraphics || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target hyprgraphics -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprgraphics $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprgraphics $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprgraphics $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprgraphics" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
@ -1,13 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# hypidle #
|
# hypridle #
|
||||||
|
|
||||||
idle=(
|
idle=(
|
||||||
libsdbus-c++-dev
|
libsdbus-c++-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
idle_tag="v0.1.2"
|
idle_tag="v0.1.6"
|
||||||
|
|
||||||
## 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 )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
@ -59,5 +59,5 @@ if git clone --recursive -b $idle_tag https://github.com/hyprwm/hypridle.git; th
|
|||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for ${YELLOW}hypridle $idle_tag${RESET}" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for ${YELLOW}hypridle $idle_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
rm -rf "hypridle" # Cleanup
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
51
install-scripts/hyprland-protocols.sh
Executable file
51
install-scripts/hyprland-protocols.sh
Executable file
@ -0,0 +1,51 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprland-protocols #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.6.4"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland-protocols.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprland-protocols2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprland-protocols dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprland-protocols directory exists and remove it
|
||||||
|
if [ -d "hyprland-protocols" ]; then
|
||||||
|
rm -rf "hyprland-protocols"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprland-protocols $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprland-protocols.git; then
|
||||||
|
cd hyprland-protocols || exit 1
|
||||||
|
meson setup build
|
||||||
|
if sudo meson install -C ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprland-protocols $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprland-protocols $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprland-protocols $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprland-protocols" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
52
install-scripts/hyprland-qt-support.sh
Executable file
52
install-scripts/hyprland-qt-support.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprland-qt-support #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.1.0"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland-qt-support.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprland-qt-support2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprland-qt-support dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprland-qt-support directory exists and remove it
|
||||||
|
if [ -d "hyprland-qt-support" ]; then
|
||||||
|
rm -rf "hyprland-qt-support"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprland-qt-support $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprland-qt-support.git; then
|
||||||
|
cd hyprland-qt-support || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINSTALL_QML_PREFIX=/usr/lib/x86_64-linux-gnu/qt6/qml -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprland-qt-support $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprland-qt-support $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprland-qt-support $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprland-qt-support" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
52
install-scripts/hyprland-qtutils.sh
Executable file
52
install-scripts/hyprland-qtutils.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprland-qtutils #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.1.4"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland-qtutils.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprland-qtutils2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprland-qtutils dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprland-qtutils directory exists and remove it
|
||||||
|
if [ -d "hyprland-qtutils" ]; then
|
||||||
|
rm -rf "hyprland-qtutils"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprland-qtutils $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprland-qtutils.git; then
|
||||||
|
cd hyprland-qtutils || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprland-qtutils $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprland-qtutils $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprland-qtutils $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprland-qtutils" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
@ -1,16 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Main Hyprland Package #
|
# hyprland #
|
||||||
|
|
||||||
hypr=(
|
|
||||||
hyprland-protocols
|
|
||||||
hyprwayland-scanner
|
|
||||||
)
|
|
||||||
|
|
||||||
# forcing to reinstall. Had experience it says hyprland is already installed
|
#specific branch or release
|
||||||
f_hypr=(
|
lang_tag="v0.49.0"
|
||||||
hyprland
|
|
||||||
)
|
|
||||||
|
|
||||||
## 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 )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
@ -27,18 +21,32 @@ 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"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprland2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprland dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
# Hyprland
|
# Check if hyprland directory exists and remove it
|
||||||
printf "${NOTE} Installing ${SKY_BLUE}Hyprland packages${RESET} .......\n"
|
if [ -d "hyprland" ]; then
|
||||||
for HYPR in "${hypr[@]}"; do
|
rm -rf "hyprland"
|
||||||
install_package "$HYPR" "$LOG"
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
# force
|
|
||||||
printf "${NOTE} Reinstalling ${SKY_BLUE}Hyprland packages${RESET} .......\n"
|
|
||||||
for HYPR1 in "${f_hypr[@]}"; do
|
|
||||||
re_install_package "$HYPR1" "$LOG"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprland $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprland.git; then
|
||||||
|
cd hyprland || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target all -j"$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprland $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprland $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprland $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprland" # Cleanup
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# hyplang #
|
# hyprlang #
|
||||||
|
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
lang_tag="v0.5.2"
|
lang_tag="v0.6.3"
|
||||||
|
|
||||||
## 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 )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
@ -36,17 +36,17 @@ printf "${INFO} Installing ${YELLOW}hyprlang $lang_tag${RESET} ...\n"
|
|||||||
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprlang.git; then
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprlang.git; then
|
||||||
cd hyprlang || exit 1
|
cd hyprlang || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target hyprlang -j"$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
printf "${OK} ${MAGENTA}hyprlang $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} ${MAGENTA}hyprlang $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
#moving the addional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
rm -rf "hyprlang" # Cleanup
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
@ -12,7 +12,7 @@ lock=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
lock_tag="v0.4.0"
|
lock_tag="v0.8.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! ##
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
@ -48,7 +48,7 @@ printf "${INFO} Installing ${YELLOW}hyprlock $lock_tag${RESET} ...\n"
|
|||||||
if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; then
|
if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; then
|
||||||
cd hyprlock || exit 1
|
cd hyprlock || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||||
cmake --build ./build --config Release --target hyprlock -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target hyprlock -j"$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install build 2>&1 | tee -a "$MLOG" ; then
|
||||||
printf "${OK} ${YELLOW}hyprlock $lock_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} ${YELLOW}hyprlock $lock_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
@ -60,5 +60,5 @@ if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; th
|
|||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for ${YELLOW}hyprlock $lock_tag${RESET}" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprlock $lock_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
rm -rf "hyprlock" # Cleanup
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|||||||
52
install-scripts/hyprutils.sh
Executable file
52
install-scripts/hyprutils.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprutils #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.7.1"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprutils.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprutils2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprutils dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprutils directory exists and remove it
|
||||||
|
if [ -d "hyprutils" ]; then
|
||||||
|
rm -rf "hyprutils"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprutils $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprutils.git; then
|
||||||
|
cd hyprutils || exit 1
|
||||||
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
|
cmake --build ./build --config Release --target hyprutils -j"$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprutils $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprutils $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprutils $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprutils" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
52
install-scripts/hyprwayland-scanner.sh
Executable file
52
install-scripts/hyprwayland-scanner.sh
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprwayland-scanner #
|
||||||
|
|
||||||
|
|
||||||
|
#specific branch or release
|
||||||
|
lang_tag="v0.4.4"
|
||||||
|
|
||||||
|
## 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
|
||||||
|
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
|
||||||
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprwayland-scanner.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprwayland-scanner2.log"
|
||||||
|
|
||||||
|
# Installation of dependencies
|
||||||
|
printf "\n%s - Installing ${YELLOW}hyprwayland-scanner dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
# Check if hyprwayland-scanner directory exists and remove it
|
||||||
|
if [ -d "hyprwayland-scanner" ]; then
|
||||||
|
rm -rf "hyprwayland-scanner"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build
|
||||||
|
printf "${INFO} Installing ${YELLOW}hyprwayland-scanner $lang_tag${RESET} ...\n"
|
||||||
|
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprwayland-scanner.git; then
|
||||||
|
cd hyprwayland-scanner || exit 1
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
|
||||||
|
cmake --build build -j "$(nproc)"
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} ${MAGENTA}hyprwayland-scanner $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}hyprwayland-scanner $lang_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
#moving the addional logs to Install-Logs directory
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}hyprwayland-scanner $lang_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
rm -rf "hyprwayland-scanner" # Cleanup
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
20
install.sh
20
install.sh
@ -312,8 +312,26 @@ echo "${INFO} Installing ${SKY_BLUE}KooL Hyprland packages...${RESET}" | tee -a
|
|||||||
sleep 1
|
sleep 1
|
||||||
execute_script "01-hypr-pkgs.sh"
|
execute_script "01-hypr-pkgs.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
execute_script "hyprutils.sh" # Order is very specific for dependencies are scattered
|
||||||
|
sleep 1
|
||||||
|
execute_script "hyprlang.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hyprcursor.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hyprgraphics.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hypr-qt-support.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hypr-qtutils.sh"
|
||||||
|
sleep 1
|
||||||
execute_script "hyprland.sh"
|
execute_script "hyprland.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
execute_script "aquamarine.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hyprland-protocols.sh"
|
||||||
|
sleep 1
|
||||||
|
execute_script "hyprwayland-scanner.sh"
|
||||||
|
sleep 1
|
||||||
execute_script "wallust.sh"
|
execute_script "wallust.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "swww.sh"
|
execute_script "swww.sh"
|
||||||
@ -322,8 +340,6 @@ execute_script "rofi-wayland.sh"
|
|||||||
sleep 1
|
sleep 1
|
||||||
execute_script "hyprlock.sh"
|
execute_script "hyprlock.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "hyprlang.sh"
|
|
||||||
sleep 1
|
|
||||||
execute_script "hypridle.sh"
|
execute_script "hypridle.sh"
|
||||||
|
|
||||||
#execute_script "imagemagick.sh" #this is for compiling from source. 07 Sep 2024
|
#execute_script "imagemagick.sh" #this is for compiling from source. 07 Sep 2024
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user