From 464888445d62291b2e59a63e0d660d712dadb2fc Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:45:02 +0000 Subject: [PATCH 1/4] Update 00-hypr-pkgs.sh Removed pywal --- install-scripts/00-hypr-pkgs.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/install-scripts/00-hypr-pkgs.sh b/install-scripts/00-hypr-pkgs.sh index 055bd7c..d8ff5cc 100755 --- a/install-scripts/00-hypr-pkgs.sh +++ b/install-scripts/00-hypr-pkgs.sh @@ -97,9 +97,4 @@ done ## making brightnessctl work sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true -## Installing pywal colors -printf "\n%s - Installing Pywal.... \n" "${NOTE}" - -sudo pip3 install pywal --break-system-packages 2>&1 | tee -a "$LOG" - clear From 8dafe7dccea73785fce03a2ee5420261064dd740 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:02:03 +0000 Subject: [PATCH 2/4] Update rofi-wayland.sh added some dependencies --- install-scripts/rofi-wayland.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-scripts/rofi-wayland.sh b/install-scripts/rofi-wayland.sh index 6430a69..5f3372e 100755 --- a/install-scripts/rofi-wayland.sh +++ b/install-scripts/rofi-wayland.sh @@ -5,6 +5,10 @@ rofi=( bison flex + pandoc + doxygen + cppcheck + ohcount ) ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## From daedfc036dee46c57182cda2bf2b94d365b63daf Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:04:45 +0000 Subject: [PATCH 3/4] Update hypr-eco.sh --- install-scripts/hypr-eco.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-scripts/hypr-eco.sh b/install-scripts/hypr-eco.sh index a975115..9efd113 100755 --- a/install-scripts/hypr-eco.sh +++ b/install-scripts/hypr-eco.sh @@ -41,6 +41,6 @@ printf "${NOTE} Installing pyprland\n" curl https://raw.githubusercontent.com/hyprland-community/pyprland/main/scripts/get-pypr | sh 2>&1 | tee -a "$LOG" -pip install pyprland 2>&1 | tee -a "$LOG" +pip install pyprland --break-system-packages 2>&1 | tee -a "$LOG" clear From b8657edf17f0c7b85cdc26dff42ec6d72f004453 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:30:44 +0000 Subject: [PATCH 4/4] Update swappy.sh re-rewritten swappy.sh --- install-scripts/swappy.sh | 54 +++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/install-scripts/swappy.sh b/install-scripts/swappy.sh index 3d8d3bf..4356812 100755 --- a/install-scripts/swappy.sh +++ b/install-scripts/swappy.sh @@ -2,6 +2,11 @@ # 💫 https://github.com/JaKooLit 💫 # # swappy - for screenshot) # +swappy=( +liblocale-msgfmt-perl +gettext +) + ## 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 )" @@ -18,28 +23,39 @@ MLOG="install-$(date +%d-%H%M%S)_swappy.log" printf "${NOTE} Installing swappy..\n" -# Check if swappy folder exists -if [ -d "swappy" ]; then - printf "${NOTE} swappy folder exists. Pulling latest changes...\n" - cd swappy || exit 1 - git pull origin master 2>&1 | tee -a "$MLOG" -else - printf "${NOTE} Cloning swappy repository...\n" - if git clone https://github.com/jtheoof/swappy.git; then - cd swappy || exit 1 - else - echo -e "${ERROR} Download failed for swappy" 2>&1 | tee -a "$LOG" +for PKG1 in "${swappy[@]}"; do + install_package "$PKG1" 2>&1 | tee -a "$LOG" + if [ $? -ne 0 ]; then + echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs" exit 1 fi +done + +## +printf "${NOTE} Installing swappy from source...\n" + +# Check if folder exists and remove it +if [ -d "swappy" ]; then + printf "${NOTE} deleting existing swappy folder...\n" + rm -rf "swappy" fi -# Proceed with the installation steps -meson build -ninja -C build -sudo ninja -C build install 2>&1 | tee -a "$MLOG" - -# Moving logs into main Install-Logs -mv "$MLOG" ../Install-Logs/ || true -cd - || exit 1 +# Clone and build swappy +printf "${NOTE} Installing swappy...\n" +if git clone --depth 1 https://github.com/jtheoof/swappy.git; then + cd swappy || exit 1 + meson setup build + ninja -C build + if sudo ninja -C build install 2>&1 | tee -a "$MLOG" ; then + printf "${OK} swappy installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for swappy." 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 swappy." 2>&1 | tee -a "$LOG" +fi clear