From fb9b8090b2fccb105ae8205e09dfd51ccf4808b7 Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 18 Feb 2026 20:55:38 +0100 Subject: [PATCH] Added Readme and fixed no magick installation --- README.md | 23 +++++++++++++++++++++++ modules/wp/generate-wallpaper-thumbs.sh | 15 ++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..97740cb --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# HyprlandQuickshellGUI: a replacement for Waybar + +## Colors +### [Matugen](https://github.com/InioX/matugen) +We use [matugen](https://github.com/InioX/matugen) for the colors. With these Templates for Some Applications we use: [maguten-config](https://git.honney333.work/honney/matugen-config) + +## Wallpaper +We use a custom directory by deafault to save all your Wallpapers: +``` +$HOME/Pictures/Wallpapers/ +``` +### Compatible Wallpaper Software: +- [hyprpaper](https://github.com/hyprwm/hyprpaper) +- [swww](https://github.com/LGFae/swww) +- [awww (comming)](https://codeberg.org/LGFae/awww) + +### Recommended Software for some stuff: +- [ImageMagick (resizing & blurring)](https://github.com/ImageMagick/ImageMagick) + +## Other Software: +### Logout: +- [wlogout](https://github.com/ArtsyMacaw/wlogout) +- [nmcli (Recommended for Wifi)](https://github.com/ushiboy/nmcli) \ No newline at end of file diff --git a/modules/wp/generate-wallpaper-thumbs.sh b/modules/wp/generate-wallpaper-thumbs.sh index 926176f..b3d1ed8 100755 --- a/modules/wp/generate-wallpaper-thumbs.sh +++ b/modules/wp/generate-wallpaper-thumbs.sh @@ -26,6 +26,11 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do # Get just the filename fname=$(basename "$img") + name="${fname%.*}" + ext="${fname##*.}" + + # no magick file: + temp_image_name="$THUMB_DIR/${name}_tmp.${ext}" # Output path thumb="$THUMB_DIR/$fname" @@ -38,7 +43,15 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do num+=1 # Generate thumbnail using ImageMagick - magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb" + if [ -x "/usr/bin/magick" ] then + magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb" + rm $temp_image_name + else + if [ -f "$temp_image_name" ] && [ "$temp_image_name" -nt "$img" ]; then + continue + fi + cp $img $temp_image_name + fi done echo "$num Thumbnails generated in $THUMB_DIR" \ No newline at end of file