From 544ea59ae25097b4507e25d243bc6eaa7cc9ced5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 5 May 2024 06:41:19 +0900 Subject: [PATCH 1/6] updated for Hyprland-v0.40.0 and waybar building from source to fix workspace missing --- install-scripts/hyprland.sh | 2 +- install-scripts/hyprlock.sh | 2 +- install-scripts/hyprwayland-scanner.sh | 65 ++++++++++++++++++++ install-scripts/waybar-git.sh | 82 ++++++++++++++++++++++++++ install.sh | 2 + 5 files changed, 151 insertions(+), 2 deletions(-) create mode 100755 install-scripts/hyprwayland-scanner.sh create mode 100755 install-scripts/waybar-git.sh diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 768b657..3abc0cd 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -4,7 +4,7 @@ #specific branch or release -hyprland_tag="v0.39.1" +hyprland_tag="v0.40.0" ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## # Determine the directory where the script is located diff --git a/install-scripts/hyprlock.sh b/install-scripts/hyprlock.sh index 9c84d6d..a42c912 100755 --- a/install-scripts/hyprlock.sh +++ b/install-scripts/hyprlock.sh @@ -34,7 +34,7 @@ for PKG1 in "${lock[@]}"; do fi done -# Check if hyprlidle folder exists and remove it +# Check if hyprlock folder exists and remove it if [ -d "hyprlock" ]; then printf "${NOTE} Removing existing hyprlock folder...\n" rm -rf "hyprlock" diff --git a/install-scripts/hyprwayland-scanner.sh b/install-scripts/hyprwayland-scanner.sh new file mode 100755 index 0000000..03ef59d --- /dev/null +++ b/install-scripts/hyprwayland-scanner.sh @@ -0,0 +1,65 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# hyprwayland-scanner - One depency from Hyprland v0.40.0# + +scan_depend=( +libpugixml-dev +) +#specific branch or release +scan_tag="v0.3.4" + +## 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 )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || exit 1 + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprlang.log" +MLOG="install-$(date +%d-%H%M%S)_hyprwayland-scanner.log" + +## +# Installation of dependencies +printf "\n%s - Installing hyprwayland-scanner dependencies.... \n" "${NOTE}" + +for PKG1 in "${scan_depend[@]}"; 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 hyprwayland-scanner...\n" + +# Check if hyprwayland-scanner folder exists and remove it +if [ -d "hyprwayland-scanner" ]; then + printf "${NOTE} Removing existing hyprwayland-scanner folder...\n" + rm -rf "hyprwayland-scanner" +fi + +# Clone and build hyprlang +printf "${NOTE} Installing hyprwayland-scanner...\n" +if git clone --recursive -b $scan_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} hyprwayland-scanner installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for hyprwayland-scanner." 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 hyprwayland-scanner. Please check log." 2>&1 | tee -a "$LOG" +fi + + +clear + diff --git a/install-scripts/waybar-git.sh b/install-scripts/waybar-git.sh new file mode 100755 index 0000000..c12b5c5 --- /dev/null +++ b/install-scripts/waybar-git.sh @@ -0,0 +1,82 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# waybar - from source # + +waybar=( +cmake +meson +scdoc +wayland-protocols +clang-tidy +gobject-introspection +libdbusmenu-gtk3-dev +libevdev-dev +libfmt-dev +libgirepository1.0-dev +libgtk-3-dev +libgtkmm-3.0-dev +libinput-dev +libjsoncpp-dev +libmpdclient-dev +libnl-3-dev +libnl-genl-3-dev +libpulse-dev +libsigc++-2.0-dev +libspdlog-dev +libwayland-dev +scdoc +upower +libxkbregistry-dev +) + + +## 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 )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || exit 1 + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_waybar-gt.log" +MLOG="install-$(date +%d-%H%M%S)_waybar-git.log" + +# Installation of dependencies +printf "\n%s - Installing waybar-git dependencies.... \n" "${NOTE}" + +for PKG1 in "${waybar[@]}"; 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 + +# Check if waybar folder exists and remove it +if [ -d "waybar" ]; then + printf "${NOTE} Removing existing waybar folder...\n" + rm -rf "waybar" +fi + +# Clone and build waybar from source +printf "${NOTE} Installing waybar...\n" +if git clone https://github.com/Alexays/Waybar; then + cd Waybar || exit 1 + meson build + if sudo ninja -C build install 2>&1 | tee -a "$MLOG" ; then + printf "${OK} waybar-git installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for waybar-git." 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 waybar-git" 2>&1 | tee -a "$LOG" +fi + +clear + diff --git a/install.sh b/install.sh index dc8adc0..2334f17 100755 --- a/install.sh +++ b/install.sh @@ -167,8 +167,10 @@ execute_script "hyprlang.sh" execute_script "hyprlock.sh" execute_script "hyprcursor.sh" execute_script "hypridle.sh" +execute_script "hyprwayland-scanner.sh" execute_script "hyprland.sh" execute_script "hypr-eco.sh" +execute_script "waybar-git.sh" #execute_script "cliphist.sh" From b60ecd5a29fbbfe64770beb70a215824d4a48d4b Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 7 May 2024 16:08:38 +0900 Subject: [PATCH 2/6] added ags --- install-scripts/ags.sh | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100755 install-scripts/ags.sh diff --git a/install-scripts/ags.sh b/install-scripts/ags.sh new file mode 100755 index 0000000..644c45e --- /dev/null +++ b/install-scripts/ags.sh @@ -0,0 +1,74 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# Aylur's GTK Shell # + +ags=( +node-typescript +npm +meson +libgjs-dev +gjs +libgtk-layer-shell-dev +libgtk-3-dev +libpulse-dev +network-manager-dev +libgnome-bluetooth-3.0-dev +libdbusmenu-gtk3-dev +libsoup-3.0-dev +) + +# specific tags to download +ags_tag="v1.8.2" + +## 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 )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || exit 1 + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log" +MLOG="install-$(date +%d-%H%M%S)_ags.log" + +# Installing ags Dependencies +for PKG1 in "${ags[@]}"; do + install_package "$PKG1" 2>&1 | tee -a "$LOG" + if [ $? -ne 0 ]; then + echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs" + exit 1 + fi +done + +printf "${NOTE} Install and Compiling Aylurs GTK shell\n" + +# Check if folder exists and remove it +if [ -d "ags" ]; then + printf "${NOTE} Removing existing ags folder...\n" + rm -rf "ags" +fi + +# Clone nwg-look repository with the specified tag +if git clone --recursive -b "$ags_tag" --depth 1 https://github.com/Aylur/ags.git; then + cd ags || exit 1 + # Build and install ags + npm install + meson setup build + if sudo meson install -C build 2>&1 | tee -a "$MLOG"; then + printf "${OK} ags successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for ags" 2>&1 | tee -a "$MLOG" + fi + + # Move logs to Install-Logs directory + mv "$MLOG" ../Install-Logs/ || true + cd .. +else + echo -e "${ERROR} Failed to download ags Please check your connection" 2>&1 | tee -a "$LOG" + mv "$MLOG" ../Install-Logs/ || true + exit 1 +fi + From ee272e94172be21cb053690ab811adadb43d1236 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 10:56:22 +0900 Subject: [PATCH 3/6] updated hyprland-scanner --- install-scripts/hyprwayland-scanner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-scripts/hyprwayland-scanner.sh b/install-scripts/hyprwayland-scanner.sh index 03ef59d..c0be647 100755 --- a/install-scripts/hyprwayland-scanner.sh +++ b/install-scripts/hyprwayland-scanner.sh @@ -6,7 +6,7 @@ scan_depend=( libpugixml-dev ) #specific branch or release -scan_tag="v0.3.4" +scan_tag="v0.3.6" ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## # Determine the directory where the script is located From 88756279e0cbd823d816b2bdb736335a138b7732 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 12:31:18 +0900 Subject: [PATCH 4/6] updated for wallust migration from pywal, updated hyprland-scanner --- CHANGELOGS.md | 7 ++++ install-scripts/00-hypr-pkgs.sh | 5 --- install-scripts/pywal.sh | 32 ----------------- install-scripts/wallust.sh | 62 +++++++++++++++++++++++++++++++++ install.sh | 2 +- 5 files changed, 70 insertions(+), 38 deletions(-) delete mode 100755 install-scripts/pywal.sh create mode 100755 install-scripts/wallust.sh diff --git a/CHANGELOGS.md b/CHANGELOGS.md index b8e7864..cb2e81e 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,12 @@ ## Changelogs +## 10 May 2024 +- added wallust-git and remove python-pywal for migration to wallust on Hyprland-Dots v2.2.11 + +## 07 May 2024 +- added ags.sh for upcoming ags overview for next Hyprland-Dots release. Will be installed form source +- added manual installation of waybar since Debian is very slow in updating their packages + ## 03 May 2024 - Bump swww to v0.9.5 - added python3-pyquery for new weather-waybar python based on Hyprland-Dots diff --git a/install-scripts/00-hypr-pkgs.sh b/install-scripts/00-hypr-pkgs.sh index 1c13674..79aa096 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 diff --git a/install-scripts/pywal.sh b/install-scripts/pywal.sh deleted file mode 100755 index 0fa5516..0000000 --- a/install-scripts/pywal.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# 💫 https://github.com/JaKooLit 💫 # -# Pywal Colors) # - -pywal=( - imagemagick - python3-pip -) - -## 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 )" - -# Change the working directory to the parent directory of the script -PARENT_DIR="$SCRIPT_DIR/.." -cd "$PARENT_DIR" || exit 1 - -source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" - -# Set the name of the log file to include the current date and time -LOG="Install-Logs/install-$(date +'%d-%H%M%S')_pywal.log" - -# Installing Pywal dependencies -for package in "${pywal[@]}"; do - install_package "$package" || exit 1 -done - -## Installing pywal colors -printf "\n%s - Installing Pywal.... \n" "${NOTE}" -sudo pip3 install pywal --break-system-packages 2>&1 | tee -a "$LOG" - -clear diff --git a/install-scripts/wallust.sh b/install-scripts/wallust.sh new file mode 100755 index 0000000..bddc079 --- /dev/null +++ b/install-scripts/wallust.sh @@ -0,0 +1,62 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# wallust - pywal colors replacment # + +depend=( +imagemagick +) + +#specific branch or release +wal_tag="dev" + +## 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 )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || exit 1 + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log" +MLOG="install-$(date +%d-%H%M%S)_wallust.log" + +# Installing depencies +for PKG1 in "${depend[@]}"; do + install_package "$PKG1" 2>&1 | tee -a "$LOG" + if [ $? -ne 0 ]; then + echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs" + exit 1 + fi +done + +## +printf "${NOTE} Installing wallust from dev branch...\n" + +# Check if folder exists and remove it +if [ -d "wallust" ]; then + printf "${NOTE} Removing existing wallust folder...\n" + rm -rf "wallust" +fi + +# Clone and build wallust +printf "${NOTE} Installing wallust...\n" +if git clone --depth 1 -b $wal_tag https://codeberg.org/explosion-mental/wallust.git; then + cd wallust || exit 1 + make + if sudo cmake --install 2>&1 | tee -a "$MLOG" ; then + printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "${ERROR} Installation failed for wallust." 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 wallust." 2>&1 | tee -a "$LOG" +fi + +clear + diff --git a/install.sh b/install.sh index 2334f17..a850276 100755 --- a/install.sh +++ b/install.sh @@ -161,7 +161,7 @@ execute_script "fonts.sh" execute_script "swappy.sh" execute_script "swww.sh" execute_script "rofi-wayland.sh" -execute_script "pywal.sh" +execute_script "wallust.sh" execute_script "force-install.sh" execute_script "hyprlang.sh" execute_script "hyprlock.sh" From 06f963a0c38126f322644db96640467a7d1881e3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 12:35:29 +0900 Subject: [PATCH 5/6] updated ags --- install-scripts/ags.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install-scripts/ags.sh b/install-scripts/ags.sh index 644c45e..01add5b 100755 --- a/install-scripts/ags.sh +++ b/install-scripts/ags.sh @@ -11,8 +11,6 @@ gjs libgtk-layer-shell-dev libgtk-3-dev libpulse-dev -network-manager-dev -libgnome-bluetooth-3.0-dev libdbusmenu-gtk3-dev libsoup-3.0-dev ) From a105abc5f60b3deccc7e996cba3ecbe40fb15f52 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 10 May 2024 12:40:40 +0900 Subject: [PATCH 6/6] updated ags.sh --- install-scripts/ags.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-scripts/ags.sh b/install-scripts/ags.sh index 01add5b..b0239fa 100755 --- a/install-scripts/ags.sh +++ b/install-scripts/ags.sh @@ -41,6 +41,11 @@ for PKG1 in "${ags[@]}"; do fi done +#install typescript by npm +sudo npm install --global typescript 2>&1 | tee -a "$LOG" + +# ags + printf "${NOTE} Install and Compiling Aylurs GTK shell\n" # Check if folder exists and remove it