aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTim <godlyfast@gmail.com>2025-12-01 11:12:41 +0200
committerTim <godlyfast@gmail.com>2025-12-01 11:12:41 +0200
commitb29221fd0d19ee1e49e4e1744abc2981f0174853 (patch)
tree88ac37476733781d6689a88b75dd36649aa728a1 /config
parentca0c23cce006ea3f7d793c5fa8eee6acff196470 (diff)
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.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh2
1 files changed, 1 insertions, 1 deletions
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
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage