Added Readme and fixed no magick installation
This commit is contained in:
@@ -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)
|
||||||
@@ -26,6 +26,11 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
|||||||
|
|
||||||
# Get just the filename
|
# Get just the filename
|
||||||
fname=$(basename "$img")
|
fname=$(basename "$img")
|
||||||
|
name="${fname%.*}"
|
||||||
|
ext="${fname##*.}"
|
||||||
|
|
||||||
|
# no magick file:
|
||||||
|
temp_image_name="$THUMB_DIR/${name}_tmp.${ext}"
|
||||||
|
|
||||||
# Output path
|
# Output path
|
||||||
thumb="$THUMB_DIR/$fname"
|
thumb="$THUMB_DIR/$fname"
|
||||||
@@ -38,7 +43,15 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
|||||||
num+=1
|
num+=1
|
||||||
|
|
||||||
# Generate thumbnail using ImageMagick
|
# Generate thumbnail using ImageMagick
|
||||||
|
if [ -x "/usr/bin/magick" ] then
|
||||||
magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb"
|
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
|
done
|
||||||
|
|
||||||
echo "$num Thumbnails generated in $THUMB_DIR"
|
echo "$num Thumbnails generated in $THUMB_DIR"
|
||||||
Reference in New Issue
Block a user