aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-12-17 11:07:29 +0900
committerGitHub <noreply@github.com>2023-12-17 11:07:29 +0900
commita9d868a61549b1a8d1e3f4f8b1e7cc13441fddea (patch)
tree0e1a2a3a6462d7008864569922bd31d0a0c5fc59 /config/hypr/scripts
parent7383ba079d97f9982a0b6723d80140818e04659d (diff)
parent3a6774177703cad0f90da27f72f4ebe53a89a363 (diff)
Merge pull request #76 from JaKooLit/Development
Development
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh5
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage