refactor(hypr): improve handling of swww launcher

This commit is contained in:
Price Hiller 2023-12-27 21:49:15 -06:00
parent f3d0bdce72
commit 84741d9e7a
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -51,11 +51,11 @@ init() {
until swww init; do until swww init; do
sleep .1 sleep .1
done done
log "swww daemon started"
} }
main() { main() {
init init
log "swww daemon running, setting wallpapers"
while :; do while :; do
while IFS= read -r line while IFS= read -r line
do do
@ -65,7 +65,7 @@ main() {
sleep .1 sleep .1
done < <(swww query) done < <(swww query)
sleep .5 sleep .5
swww init init
done done
} }