[eww] Fix notifications state

This commit is contained in:
Viyurz 2024-10-21 16:55:53 +02:00
parent 1ce5d3c2b2
commit 18a8f9801e
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -13,7 +13,7 @@
(defpoll year :interval "1m" :initial "0" "date +'%Y'") (defpoll year :interval "1m" :initial "0" "date +'%Y'")
; Notifications status ; Notifications status
(deflisten nf-enabled :initial "true" "while :; do makoctl mode | grep -q dnd && echo true || echo false; sleep 0.1; done") (deflisten nf-enabled :initial "true" "while :; do makoctl mode | grep -q dnd && echo false || echo true; sleep 0.1; done")
; Packages updates ; Packages updates
(deflisten packages-updates :initial '{"count": "-", "class": " "}' "~/.config/eww/scripts/pkg-updates.sh") (deflisten packages-updates :initial '{"count": "-", "class": " "}' "~/.config/eww/scripts/pkg-updates.sh")