From aca55deb9e525471e0acf51525f6fd244b3f7167 Mon Sep 17 00:00:00 2001 From: 0xL30 <72350874+0xl30@users.noreply.github.com> Date: Sun, 31 Dec 2023 21:23:59 +0530 Subject: Wallpaper Previews --- config/hypr/scripts/WallpaperSelect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh index 691b8fd2..5c3f2b94 100755 --- a/config/hypr/scripts/WallpaperSelect.sh +++ b/config/hypr/scripts/WallpaperSelect.sh @@ -23,13 +23,13 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC_NAME="${#PICS[@]}. random" # Rofi command -rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi" +rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" menu() { for i in "${!PICS[@]}"; do # Displaying .gif to indicate animated images if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then - printf "$(echo "${PICS[$i]}" | cut -d. -f1)\n" + printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${DIR}/${PICS[$i]}\n" else printf "${PICS[$i]}\n" fi -- cgit v1.2.3