From 00faa20da0bf96c863b14ab367c2a09fe52ed14e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 30 Nov 2023 11:55:05 +0900 Subject: updated Keybinds.conf and Wallpaper.sh --- config/hypr/scripts/Wallpaper.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index 8fdfcbb1..c494dca1 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -6,11 +6,18 @@ 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 +# Transition config +FPS=30 +TYPE="any" +DURATION=3 +SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" + + +swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS ${SCRIPTSDIR}/PywalSwww.sh & sleep 1 ${SCRIPTSDIR}/Refresh.sh + -- cgit v1.2.3 From f9f437f20a69f3fc8031f0b0ae9deaf6fc91e59f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 30 Nov 2023 14:25:10 +0900 Subject: updated Wallpaper random script --- config/hypr/scripts/WallpaperRandom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh index e0f8ee7d..aafcf2ae 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/scripts/WallpaperRandom.sh @@ -29,7 +29,7 @@ while true; do done \ | sort -n | cut -d':' -f2- \ | while read -r img; do - swww img "$img" & $pywal_script & $pywal_refresh + swww img "$img" && $pywal_script & $pywal_refresh sleep $INTERVAL done -- cgit v1.2.3