diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-11-30 17:08:25 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-30 17:08:25 +0900 |
| commit | 592ce2027056eded49968619c21b2c54f1b1f0f9 (patch) | |
| tree | 4703c60fd0776eadec65f5ed38f27f69824ef9ed /config/hypr/scripts | |
| parent | 50bb988ed64c9962f350d07ef1914e1111b3d97a (diff) | |
| parent | f9f437f20a69f3fc8031f0b0ae9deaf6fc91e59f (diff) | |
Merge pull request #45 from JaKooLit/v2.1.12
V2.1.12 preliminary v2.1.12 changes
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/Wallpaper.sh | 11 | ||||
| -rwxr-xr-x | config/hypr/scripts/WallpaperRandom.sh | 2 |
2 files changed, 10 insertions, 3 deletions
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 + 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 |
