refactor(hypr): improve handling of swww launcher
This commit is contained in:
parent
f3d0bdce72
commit
84741d9e7a
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user