From 7324ac502815d11c32235594ce72b072c1d89242 Mon Sep 17 00:00:00 2001 From: SeraphimeZelel Date: Wed, 5 Nov 2025 13:11:41 +0700 Subject: [PATCH] Make the wallpaper-picker script accept all image file extensions, instead of only .png files. --- .script/wallpaper-picker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.script/wallpaper-picker.sh b/.script/wallpaper-picker.sh index be610f8..ada2cc9 100755 --- a/.script/wallpaper-picker.sh +++ b/.script/wallpaper-picker.sh @@ -26,7 +26,8 @@ generate_menu(){ # Find all images and sort naturally while IFS= read -r img; do [[ -f "$img" ]] || continue - thumb="$CACHE_DIR/$(basename "${img%.*}").png" + ext="${img##*.}" + thumb="$CACHE_DIR/$(basename "${img%.*}").$ext" # Generate thumbnail if missing or outdated if [[ ! -f "$thumb" ]] || [[ "$img" -nt "$thumb" ]]; then