From 65a6dddd7641cf7fb2aca7f3c8ebe657a631621d Mon Sep 17 00:00:00 2001 From: SuJin353 <131243461+SuJin353@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:11:58 +0700 Subject: Update DarkLight.sh change dark light wallpaper to its opposite wallpaper(need picture in light and dark folder have the same name) --- config/hypr/scripts/DarkLight.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index b63a3ba2..66c8549d 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -120,9 +120,9 @@ elif [ "$next_mode" = "Light" ] && [ -f "$dark_wallpapers/$current_wallpaper" ]; next_wallpaper="$light_wallpapers/$current_wallpaper" else if [ "$next_mode" = "Dark" ]; then - next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -pri> + next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" else - next_wallpaper="$(find "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -pr> + next_wallpaper="$(find "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" fi fi -- cgit v1.2.3