From d947af09ec4a26beadb45dae54c0739526eaa2ac Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 2 May 2024 23:02:42 +0900 Subject: [PATCH] updated readme and adjusted pyprland installation --- CHANGELOGS.md | 2 +- README.md | 2 +- install-scripts/hypr-eco.sh | 25 +++++++++++++++++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index f7af5b3..baad581 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,7 +1,7 @@ ## Changelogs ## 02 May 2024 -- Added pyprland (hyprland plugin) +- Added pyprland (hyprland plugin) - warning, I cant make it to properly run. Drop Down terminal not working, zoom is hit and miss ## 30 Apr 2024 - Updated hyprland.sh to install v0.39.1 Hyprland diff --git a/README.md b/README.md index 53bb6a6..4a167a2 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ log into your account - [ ] sddm blackscreen when log-out - [ ] Installing SDDM if or any other Login Manager installed. See [`Issue 2 - SDDM`](https://github.com/JaKooLit/Debian-Hyprland/issues/2) - [ ] network is down or become unmanaged [`This`](https://askubuntu.com/questions/71159/network-manager-says-device-not-managed) might help - +- [ ] pyprland is a hit and miss. Drop down not working, zooming is hit and miss #### 📒 Final Notes - join my discord channel [`Discord`](https://discord.gg/V2SJ92vbEN) diff --git a/install-scripts/hypr-eco.sh b/install-scripts/hypr-eco.sh index 764eebf..87b0ba3 100755 --- a/install-scripts/hypr-eco.sh +++ b/install-scripts/hypr-eco.sh @@ -1,6 +1,11 @@ #!/bin/bash # 💫 https://github.com/JaKooLit 💫 # # This is to be use for installing hyprland plugins +# Hyprland plugins: pyprland + +pypr_depend=( + python-is-python3 +) ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## # Determine the directory where the script is located @@ -15,12 +20,28 @@ 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)_hypr_eco.log" +# Pyprland +printf "${NOTE} Installing Pyprland Dependencies...\n" + for PYPR in "${pypr_depend[@]}"; do + install_package "$PYPR" 2>&1 | tee -a "$LOG" + [ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $PYPR Package installation failed, Please check the installation logs"; exit 1; } + done + + +# Check if the file exists and delete it +pypr="/usr/local/bin/pypr" +if [ -f "$pypr" ]; then + sudo rm "$pypr" +fi + # Hyprland Plugins # pyprland https://github.com/hyprland-community/pyprland installing using python printf "${NOTE} Installing pyprland\n" -pip install pyprland 2>&1 | tee -a "$LOG" || True curl https://raw.githubusercontent.com/hyprland-community/pyprland/main/scripts/get-pypr | sh 2>&1 | tee -a "$LOG" -clear +pip install pyprland --break-system-packages 2>&1 | tee -a "$LOG" + + +