From b29221fd0d19ee1e49e4e1744abc2981f0174853 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 1 Dec 2025 11:12:41 +0200 Subject: fix: Fix wallpaper selector showing wrong wallpaper when filename contains dots The `cut -d. -f1` command truncated filenames at the first dot, causing wallpapers named like "01. Catppuccin.jpg" to display as just "01" in the rofi menu. Multiple wallpapers with the same prefix showed identical labels, and selecting one applied the wrong file since `find -print -quit` returned the first alphabetical match. Changed to use full filename `$pic_name` (consistent with GIF and video handling on lines 87 and 94). The existing sed on line 222 correctly strips only the file extension for the find command. --- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 9e51125f..0029d3e5 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -93,7 +93,7 @@ menu() { fi printf "%s\x00icon\x1f%s\n" "$pic_name" "$cache_preview_image" else - printf "%s\x00icon\x1f%s\n" "$(echo "$pic_name" | cut -d. -f1)" "$pic_path" + printf "%s\x00icon\x1f%s\n" "$pic_name" "$pic_path" fi done } -- cgit v1.2.3