From a9fb3f9040f3811b09e9030ee7b21bd44693ade8 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 9 Dec 2023 23:47:21 -0600 Subject: [PATCH] fix(hypr): improve swww launch script --- dots/.config/hypr/scripts/launchers/launch-swww.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dots/.config/hypr/scripts/launchers/launch-swww.bash b/dots/.config/hypr/scripts/launchers/launch-swww.bash index fcc7e1ad..2c7728ca 100755 --- a/dots/.config/hypr/scripts/launchers/launch-swww.bash +++ b/dots/.config/hypr/scripts/launchers/launch-swww.bash @@ -1,5 +1,4 @@ #!/usr/bin/env bash -set -e log() { printf "%s\n" "${*}" @@ -48,10 +47,14 @@ set-wallpapers() { set-wallpaper "eDP-1" "${HOME}/.dot_files/dots/.local/share/wallpapers/Industrial-Shaded.png" } -main() { +init() { until swww init; do sleep .1 done +} + +main() { + init log "swww daemon running, setting wallpapers" while :; do while IFS= read -r line @@ -61,7 +64,8 @@ main() { fi sleep .1 done < <(swww query) - sleep .1 + sleep .5 + swww init done }