change-wallpaper: update hash & cache logic

This commit is contained in:
2025-12-01 15:30:48 +01:00
parent bfda6f4ac2
commit 8063f91d8a

View File

@@ -88,7 +88,7 @@ magick "$image" -resize "${screen_width}x${screen_height}^" -gravity center -ext
exit 1 exit 1
} }
cp "$temp_img" "$image_copied" || exit 1 cp "$temp_img" "$image_copied" || exit 1
hash=$(md5sum "$image_copied" | awk '{print $1}') hash="$(md5sum "$image" | awk '{print $1}')-${screen_width}x${screen_height}"
# Clean up old wallpapers # Clean up old wallpapers