(deflisten bat0
:initial "BAT0 ERR"
{ "~/.config/eww/scripts/bat.nu BAT0"}
)
(deflisten bat1
:initial "BAT1 ERR"
{ "~/.config/eww/scripts/bat.nu BAT1"}
)
(defwidget cpu []
(box
:class "cpuIndicator"
(label
:markup " ${strlength(round(EWW_CPU.avg, 0)) == 1 ? " ${round(EWW_CPU.avg, 0)}" : round(EWW_CPU.avg, 0)}%"
)
)
)
(defwidget mem []
(box
:class "memIndicator"
(label
:markup " ${round(EWW_RAM.used_mem_perc, 0)}%"
)
)
)