aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WallpaperAutoChange.sh
diff options
context:
space:
mode:
authorDonald Williams <129223418+dwilliam62@users.noreply.github.com>2025-09-20 12:33:18 -0400
committerGitHub <noreply@github.com>2025-09-20 12:33:18 -0400
commitcb3aabe4e7d2316ec851204e48770f587de98052 (patch)
tree500f17aabfc27995a3e0906aedbedc9dd386fc0b /config/hypr/UserScripts/WallpaperAutoChange.sh
parent2c1032ef41ef1a49cec209fbe586655637aaa059 (diff)
parentd3aa230348871301340b10f9ba1d5d07c08ad7c1 (diff)
Merge pull request #818 from JaKooLit/fix/wallust-refresh-race
Fix/wallust refresh race condition
Diffstat (limited to 'config/hypr/UserScripts/WallpaperAutoChange.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperAutoChange.sh5
1 files changed, 4 insertions, 1 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage