Added Readme and fixed no magick installation

This commit is contained in:
Hannes
2026-02-18 20:55:38 +01:00
parent 13e05a3f93
commit fb9b8090b2
2 changed files with 37 additions and 1 deletions
+23
View File
@@ -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)
+13
View File
@@ -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
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"