diff options
| author | Ja.KooLit <ejhay.games@gmail.com> | 2023-12-17 02:08:12 +0900 |
|---|---|---|
| committer | Ja.KooLit <ejhay.games@gmail.com> | 2023-12-17 02:08:12 +0900 |
| commit | 956c5e44fb6af5f11c9950e91b9bd021d842115c (patch) | |
| tree | b7f204a7327613c79b5f76572ec553d0ead03aa0 /config/hypr/scripts | |
| parent | 9941024f526d25ce13d474f04940baa0d7c81d6a (diff) | |
updated Dark Light
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index cdb2c5ae..0978c530 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -73,14 +73,15 @@ fi # Set Dynamic Wallpaper for Dark Mode if [ "$next_mode" = "Dark" ]; then - next_wallpaper="$(find "${dark_wallpapers}" -type f -iname "*.jpg" -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" fi # Set Dynamic Wallpaper for Light Mode if [ "$next_mode" = "Light" ]; then - next_wallpaper="$(find "${light_wallpapers}" -type f -iname "*.jpg" -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" fi + $swww "${next_wallpaper}" $effect # This is a referrence point for next cycle |
