wallpaper: no blurred wallpaper

Breaks wlogout conf, but it isnt even really part of the dots so yeah
For speeeeeed
Also ensure thumbnail cache dir exists
This commit is contained in:
2 * r + 2 * t
2025-04-09 16:16:50 +10:00
parent e342d2d2dc
commit 9cf691b376
+1 -1
View File
@@ -107,6 +107,7 @@ else
hyprctl hyprpaper unload unused > /dev/null hyprctl hyprpaper unload unused > /dev/null
# Thumbnail wallpaper for colour gen # Thumbnail wallpaper for colour gen
mkdir -p $C_CACHE/thumbnails
set -l thumb_path $C_CACHE/thumbnails/(sha1sum $chosen_wallpaper | cut -d ' ' -f 1).jpg set -l thumb_path $C_CACHE/thumbnails/(sha1sum $chosen_wallpaper | cut -d ' ' -f 1).jpg
if ! test -f $thumb_path if ! test -f $thumb_path
magick -define jpeg:size=256x256 $chosen_wallpaper -thumbnail 128x128 $thumb_path magick -define jpeg:size=256x256 $chosen_wallpaper -thumbnail 128x128 $thumb_path
@@ -136,5 +137,4 @@ else
mkdir -p $state_dir mkdir -p $state_dir
echo $chosen_wallpaper > $last_wallpaper_path echo $chosen_wallpaper > $last_wallpaper_path
ln -sf $chosen_wallpaper "$state_dir/current" ln -sf $chosen_wallpaper "$state_dir/current"
magick $chosen_wallpaper -fill black -colorize 10% -blur 0x10 "$state_dir/blur" &
end end