diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-11-27 13:53:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 13:53:48 +0900 |
| commit | 8eeed24b9579cf4cc76cc67dc4b5c73b2ef34573 (patch) | |
| tree | 2115df3ef73ea54d71ba9ff84364c690b591af44 /config/hypr/scripts/Wallpaper.sh | |
| parent | 4502d47a44dd46306e0803ec0b27a0db48b2819c (diff) | |
| parent | f981d4fbbfb5f853b491a062e6e9017669102115 (diff) | |
Merge pull request #37 from JaKooLit/v2.1.10
V2.1.10
Diffstat (limited to 'config/hypr/scripts/Wallpaper.sh')
| -rwxr-xr-x | config/hypr/scripts/Wallpaper.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index d5ea4645..52502642 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -1,12 +1,18 @@ #!/bin/bash -DIR=$HOME/Pictures/wallpapers/ +DIR="$HOME/Pictures/wallpapers/" +SCRIPTSDIR="$HOME/.config/hypr/scripts" + PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} swww query || swww init swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 -exec $HOME/.config/hypr/scripts/PywalSwww.sh & + + +${SCRIPTSDIR}/PywalSwww.sh & +sleep 1 +${SCRIPTSDIR}/Refresh.sh & sleep 1 -exec $HOME/.config/hypr/scripts/Refresh.sh
\ No newline at end of file +${SCRIPTSDIR}/PywalDunst.sh
\ No newline at end of file |
