aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Wallpaper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/Wallpaper.sh')
-rwxr-xr-xconfig/hypr/scripts/Wallpaper.sh12
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage