diff options
| author | Donald Williams <129223418+dwilliam62@users.noreply.github.com> | 2025-09-20 12:33:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 12:33:18 -0400 |
| commit | cb3aabe4e7d2316ec851204e48770f587de98052 (patch) | |
| tree | 500f17aabfc27995a3e0906aedbedc9dd386fc0b /config/hypr/UserScripts | |
| parent | 2c1032ef41ef1a49cec209fbe586655637aaa059 (diff) | |
| parent | d3aa230348871301340b10f9ba1d5d07c08ad7c1 (diff) | |
Merge pull request #818 from JaKooLit/fix/wallust-refresh-race
Fix/wallust refresh race condition
Diffstat (limited to 'config/hypr/UserScripts')
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperAutoChange.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperSelect.sh | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/WallpaperAutoChange.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh index f54620bb..a6d2cedd 100755 --- a/config/hypr/UserScripts/WallpaperAutoChange.sh +++ b/config/hypr/UserScripts/WallpaperAutoChange.sh @@ -31,7 +31,10 @@ while true; do done \ | sort -n | cut -d':' -f2- \ | while read -r img; do - swww img -o $focused_monitor "$img" + swww img -o $focused_monitor "$img" + # Regenerate colors from the exact image path to avoid cache races + $HOME/.config/hypr/scripts/WallustSwww.sh "$img" + # Refresh UI components that depend on wallust output $wallust_refresh sleep $INTERVAL diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index a6e6c4d4..a08b53ce 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -168,8 +168,8 @@ apply_image_wallpaper() { swww img -o "$focused_monitor" "$image_path" $SWWW_PARAMS - # Run additional scripts - "$SCRIPTSDIR/WallustSwww.sh" + # Run additional scripts (pass the image path to avoid cache race conditions) + "$SCRIPTSDIR/WallustSwww.sh" "$image_path" sleep 2 "$SCRIPTSDIR/Refresh.sh" sleep 1 |
