From 8880277827a86bd04c0b072d64a25772ea0a8bb6 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 2 May 2024 19:48:45 +0900 Subject: [PATCH 1/6] Added pyprland (hyprland plugin) --- CHANGELOGS.md | 3 +++ install-scripts/hypr-eco.sh | 23 +++++++++++++++++++++++ install.sh | 2 ++ 3 files changed, 28 insertions(+) create mode 100755 install-scripts/hypr-eco.sh diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 0f0ef81..f7af5b3 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## Changelogs +## 02 May 2024 +- Added pyprland (hyprland plugin) + ## 30 Apr 2024 - Updated hyprland.sh to install v0.39.1 Hyprland - adding hypridle and hyprlock diff --git a/install-scripts/hypr-eco.sh b/install-scripts/hypr-eco.sh new file mode 100755 index 0000000..ab1ea84 --- /dev/null +++ b/install-scripts/hypr-eco.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# This is to be use for installing hyprland plugins + +## 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)_hypr_eco.log" + +# Hyprland Plugins +# pyprland https://github.com/hyprland-community/pyprland installing using python +pip install pyprland 2>&1 | tee -a "$LOG" || True + +clear + diff --git a/install.sh b/install.sh index 20c7b00..dc8adc0 100755 --- a/install.sh +++ b/install.sh @@ -168,6 +168,8 @@ execute_script "hyprlock.sh" execute_script "hyprcursor.sh" execute_script "hypridle.sh" execute_script "hyprland.sh" +execute_script "hypr-eco.sh" + #execute_script "cliphist.sh" From 8253189f6ed09da89e9d0d29a808f3efe6a285e9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 2 May 2024 20:00:23 +0900 Subject: [PATCH 2/6] updated hypr-eco.sh --- install-scripts/hypr-eco.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-scripts/hypr-eco.sh b/install-scripts/hypr-eco.sh index ab1ea84..764eebf 100755 --- a/install-scripts/hypr-eco.sh +++ b/install-scripts/hypr-eco.sh @@ -17,7 +17,10 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_hypr_eco.log" # 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 From d947af09ec4a26beadb45dae54c0739526eaa2ac Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 2 May 2024 23:02:42 +0900 Subject: [PATCH 3/6] 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" + + + From bdc8d25b094ced6345676b35e3cd2a6b87fa2ebc Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 3 May 2024 09:08:12 +0900 Subject: [PATCH 4/6] updated readme for some tips for nvidia-gpu users --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4a167a2..2283334 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ sudo nano /etc/apt/sources.list - If However, decided to try, recommend to install SDDM. Apart from GDM and SDDM, any other Login Manager may not work nor launch Hyprland. However, hyprland can be launched through tty by type Hyprland - 🕯️ network-manager-gnome (nm-applet) has been removed from the packages to install. This is because it is known to restart the networkmanager causing issues in the installation process. After you boot up, inorder to get the network-manager applet, install network-manager-gnome. `sudo apt install network-manager-gnome` See below if your network or wifi became unmanaged after installation - If you have nvidia, and wanted to use proprietary drivers, uninstall nouveau first (if installed). This script will be installing proprietary nvidia drivers and will not deal with removal of nouveau. +- NVIDIA users / owners, after installation, check [`THIS`](https://github.com/JaKooLit/Hyprland-Dots/wiki/Notes_to_remember#--for-nvidia-gpu-users) #### ⚠️ WARNING! nwg-look takes long time to install. - nwg-look is a utility to costumize your GTK theme. It's a LXAppearance like. Its a good tool though but this package is entirely optional @@ -203,6 +204,7 @@ log into your account - [ ] 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) - Feel free to copy, re-distribute, and use this script however you want. Would appreciate if you give me some loves by crediting my work :) From bef3e68956cedc046395c3a6541152c55d3d0c33 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 3 May 2024 09:54:15 +0900 Subject: [PATCH 5/6] updated swww with latest release --- CHANGELOGS.md | 3 +++ install-scripts/swww.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index baad581..b7e6211 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## Changelogs +## 03 May 2024 +- Bump swww to v0.9.5 + ## 02 May 2024 - Added pyprland (hyprland plugin) - warning, I cant make it to properly run. Drop Down terminal not working, zoom is hit and miss diff --git a/install-scripts/swww.sh b/install-scripts/swww.sh index 1c975ea..c6d869b 100755 --- a/install-scripts/swww.sh +++ b/install-scripts/swww.sh @@ -8,7 +8,7 @@ liblz4-dev ) #specific branch or release -swww_tag="v0.9.4" +swww_tag="v0.9.5" ## 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 932f0e95ecdd8e50721385d242e2af135c89e760 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 3 May 2024 17:59:49 +0900 Subject: [PATCH 6/6] added pyquery for new weather python script for waybar on Hyprland-Dots v2.2.10 --- CHANGELOGS.md | 1 + install-scripts/00-dependencies.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index b7e6211..b8e7864 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -2,6 +2,7 @@ ## 03 May 2024 - Bump swww to v0.9.5 +- added python3-pyquery for new weather-waybar python based on Hyprland-Dots ## 02 May 2024 - Added pyprland (hyprland plugin) - warning, I cant make it to properly run. Drop Down terminal not working, zoom is hit and miss diff --git a/install-scripts/00-dependencies.sh b/install-scripts/00-dependencies.sh index 14bb994..fac5521 100755 --- a/install-scripts/00-dependencies.sh +++ b/install-scripts/00-dependencies.sh @@ -85,6 +85,7 @@ dependencies=( python3-markdown python3-markupsafe python3-yaml + python3-pyquery qt6-base-dev scdoc seatd