aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/RefreshNoWaybar.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2025-09-20 12:20:28 -0400
committerDon Williams <don.e.williams@gmail.com>2025-09-20 12:23:40 -0400
commit4a8131b166c4ba2512d075dcf5cc930ca1652bd8 (patch)
treec59dfa254d7cc616a0283e99b14d76229f929868 /config/hypr/scripts/RefreshNoWaybar.sh
parent2c1032ef41ef1a49cec209fbe586655637aaa059 (diff)
fix(wallust): make theme regeneration deterministic on wallpaper change
- Accept explicit image path in WallustSwww.sh; retry swww cache briefly if not provided - Pass selected image path from WallpaperSelect.sh to WallustSwww.sh - Run WallustSwww.sh synchronously in RefreshNoWaybar.sh to ensure colors are ready before reload - Update WallpaperAutoChange.sh to call WallustSwww.sh with each rotated image This eliminates races against swww’s cache and ensures Wallust updates waybar/rofi/kitty/hypr colors immediately after changing wallpapers. Test plan: - Select a wallpaper (SUPER+W): observe updated files in ~/.config/{waybar,rofi,kitty}/ and immediate border color changes; waybar reloads with new palette - Enable auto-rotate (WallpaperAutoChange.sh): colors now update on each rotation without manual intervention Tested-by: KalebNH
Diffstat (limited to 'config/hypr/scripts/RefreshNoWaybar.sh')
-rwxr-xr-xconfig/hypr/scripts/RefreshNoWaybar.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh
index f950db51..8454124e 100755
--- a/config/hypr/scripts/RefreshNoWaybar.sh
+++ b/config/hypr/scripts/RefreshNoWaybar.sh
@@ -31,8 +31,9 @@ done
# quit quickshell & relaunch quickshell
#pkill qs && qs &
-# Wallust refresh
-${SCRIPTSDIR}/WallustSwww.sh &
+# Wallust refresh (synchronous to ensure colors are ready)
+${SCRIPTSDIR}/WallustSwww.sh
+sleep 0.2
# reload swaync
swaync-client --reload-config
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage