diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c51f00c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +Install-Logs/* + +!Install-Logs/.gitkeep \ No newline at end of file diff --git a/Install-Logs/.gitkeep b/Install-Logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/install-scripts/00-dependencies.sh b/install-scripts/00-dependencies.sh index 7fef79b..017b4af 100755 --- a/install-scripts/00-dependencies.sh +++ b/install-scripts/00-dependencies.sh @@ -45,14 +45,24 @@ hyprland_dep=( bc binutils libc6 - libcairo2 + libcairo2-dev libdisplay-info2 libdrm2 - libhyprcursor-dev - libhyprlang-dev - libhyprutils-dev + libjpeg-dev + libjxl-dev + libmagic-dev + libpixman-1-dev + libpugixml-dev + libre2-dev + librsvg2-dev + libspng-dev + libtomlplusplus-dev + libwebp-dev + libzip-dev libpam0g-dev - hyprcursor-util + qt6-base-private-dev + qt6-wayland-dev + qt6-wayland-private-dev ) build_dep=( diff --git a/install-scripts/01-hypr-pkgs.sh b/install-scripts/01-hypr-pkgs.sh index 7064a3d..d478807 100755 --- a/install-scripts/01-hypr-pkgs.sh +++ b/install-scripts/01-hypr-pkgs.sh @@ -26,8 +26,8 @@ hypr_package=( python3-requests python3-pip qt5ct - qt5-style-kvantum - qt5-style-kvantum-themes + qt-style-kvantum + qt-style-kvantum-themes qt6ct slurp swappy diff --git a/install-scripts/02-pre-cleanup.sh b/install-scripts/02-pre-cleanup.sh old mode 100644 new mode 100755 diff --git a/install-scripts/03-Final-Check.sh b/install-scripts/03-Final-Check.sh old mode 100644 new mode 100755 diff --git a/install-scripts/aquamarine.sh b/install-scripts/aquamarine.sh new file mode 100755 index 0000000..8e964e8 --- /dev/null +++ b/install-scripts/aquamarine.sh @@ -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} diff --git a/install-scripts/dotfiles-branch.sh b/install-scripts/dotfiles-branch.sh old mode 100644 new mode 100755 index d22efd7..b1baac3 --- a/install-scripts/dotfiles-branch.sh +++ b/install-scripts/dotfiles-branch.sh @@ -23,7 +23,7 @@ printf "${NOTE} Cloning and Installing ${SKY_BLUE}KooL's Hyprland Dots for Debia # Check if Hyprland-Dots exists if [ -d Hyprland-Dots-Debian ]; then - cd Hyprland-Dots-Debian + cd Hyprland-Dots-Debian || exit git stash && git pull chmod +x copy.sh ./copy.sh diff --git a/install-scripts/hyprcursor.sh b/install-scripts/hyprcursor.sh new file mode 100755 index 0000000..b726fac --- /dev/null +++ b/install-scripts/hyprcursor.sh @@ -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} diff --git a/install-scripts/hyprgraphics.sh b/install-scripts/hyprgraphics.sh new file mode 100755 index 0000000..d680f2e --- /dev/null +++ b/install-scripts/hyprgraphics.sh @@ -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} diff --git a/install-scripts/hypridle.sh b/install-scripts/hypridle.sh index b07f942..e28cf21 100755 --- a/install-scripts/hypridle.sh +++ b/install-scripts/hypridle.sh @@ -1,13 +1,13 @@ #!/bin/bash # 💫 https://github.com/JaKooLit 💫 # -# hypidle # +# hypridle # idle=( libsdbus-c++-dev ) #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! ## 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 echo -e "${ERROR} Download failed for ${YELLOW}hypridle $idle_tag${RESET}" 2>&1 | tee -a "$LOG" fi - -printf "\n%.0s" {1..2} \ No newline at end of file +rm -rf "hypridle" # Cleanup +printf "\n%.0s" {1..2} diff --git a/install-scripts/hyprland-protocols.sh b/install-scripts/hyprland-protocols.sh new file mode 100755 index 0000000..928be87 --- /dev/null +++ b/install-scripts/hyprland-protocols.sh @@ -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} diff --git a/install-scripts/hyprland-qt-support.sh b/install-scripts/hyprland-qt-support.sh new file mode 100755 index 0000000..f39dba0 --- /dev/null +++ b/install-scripts/hyprland-qt-support.sh @@ -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} diff --git a/install-scripts/hyprland-qtutils.sh b/install-scripts/hyprland-qtutils.sh new file mode 100755 index 0000000..327bbc3 --- /dev/null +++ b/install-scripts/hyprland-qtutils.sh @@ -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} diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 71282e6..a86fb8a 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -1,16 +1,10 @@ #!/bin/bash # 💫 https://github.com/JaKooLit 💫 # -# Main Hyprland Package # +# hyprland # -hypr=( - hyprland-protocols - hyprwayland-scanner -) -# forcing to reinstall. Had experience it says hyprland is already installed -f_hypr=( - hyprland -) +#specific branch or release +lang_tag="v0.49.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 )" @@ -27,18 +21,32 @@ 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.log" +MLOG="install-$(date +%d-%H%M%S)_hyprland2.log" +# Installation of dependencies +printf "\n%s - Installing ${YELLOW}hyprland dependencies${RESET} .... \n" "${INFO}" -# Hyprland -printf "${NOTE} Installing ${SKY_BLUE}Hyprland packages${RESET} .......\n" - for HYPR in "${hypr[@]}"; do - install_package "$HYPR" "$LOG" -done +# Check if hyprland directory exists and remove it +if [ -d "hyprland" ]; then + rm -rf "hyprland" +fi -# force -printf "${NOTE} Reinstalling ${SKY_BLUE}Hyprland packages${RESET} .......\n" - for HYPR1 in "${f_hypr[@]}"; do - re_install_package "$HYPR1" "$LOG" -done - -printf "\n%.0s" {1..2} \ No newline at end of file +# 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} diff --git a/install-scripts/hyprlang.sh b/install-scripts/hyprlang.sh index c043955..9913f24 100755 --- a/install-scripts/hyprlang.sh +++ b/install-scripts/hyprlang.sh @@ -1,10 +1,10 @@ #!/bin/bash # 💫 https://github.com/JaKooLit 💫 # -# hyplang # +# hyprlang # #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! ## 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 cd hyprlang || 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 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 printf "${OK} ${MAGENTA}hyprlang $lang_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG" else echo -e "${ERROR} Installation failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$MLOG" fi #moving the addional logs to Install-Logs directory - mv $MLOG ../Install-Logs/ || true + mv "$MLOG" ../Install-Logs/ || true cd .. else echo -e "${ERROR} Download failed for ${YELLOW}hyprlang $lang_tag${RESET}" 2>&1 | tee -a "$LOG" fi - -printf "\n%.0s" {1..2} \ No newline at end of file +rm -rf "hyprlang" # Cleanup +printf "\n%.0s" {1..2} diff --git a/install-scripts/hyprlock.sh b/install-scripts/hyprlock.sh index f220076..1431d40 100755 --- a/install-scripts/hyprlock.sh +++ b/install-scripts/hyprlock.sh @@ -12,7 +12,7 @@ lock=( ) #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! ## 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 cd hyprlock || exit 1 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 printf "${OK} ${YELLOW}hyprlock $lock_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG" else @@ -60,5 +60,5 @@ if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; th else echo -e "${ERROR} Download failed for ${YELLOW}hyprlock $lock_tag${RESET}" 2>&1 | tee -a "$LOG" fi - +rm -rf "hyprlock" # Cleanup printf "\n%.0s" {1..2} diff --git a/install-scripts/hyprutils.sh b/install-scripts/hyprutils.sh new file mode 100755 index 0000000..85a7ba0 --- /dev/null +++ b/install-scripts/hyprutils.sh @@ -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} diff --git a/install-scripts/hyprwayland-scanner.sh b/install-scripts/hyprwayland-scanner.sh new file mode 100755 index 0000000..8ca2e63 --- /dev/null +++ b/install-scripts/hyprwayland-scanner.sh @@ -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} diff --git a/install.sh b/install.sh index 9b46c76..1efb39c 100755 --- a/install.sh +++ b/install.sh @@ -312,8 +312,26 @@ echo "${INFO} Installing ${SKY_BLUE}KooL Hyprland packages...${RESET}" | tee -a sleep 1 execute_script "01-hypr-pkgs.sh" 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" 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" sleep 1 execute_script "swww.sh" @@ -322,8 +340,6 @@ execute_script "rofi-wayland.sh" sleep 1 execute_script "hyprlock.sh" sleep 1 -execute_script "hyprlang.sh" -sleep 1 execute_script "hypridle.sh" #execute_script "imagemagick.sh" #this is for compiling from source. 07 Sep 2024