eww: Add ram gauge

This commit is contained in:
2025-09-11 11:34:50 +02:00
parent 5b4f97982d
commit bbb7add614

View File

@ -40,6 +40,7 @@
(speaker)
(temperature)
(battery)
(ram)
(box :class "thingy" (systray :orientation "v"))
(color_scheme)
(xwayland)
@ -138,6 +139,21 @@
(label :text "${current_temp / 1000}°")
))
(defwidget ram []
(box :orientation "v"
:valign "end"
:class "thingy"
(label :text "RAM")
(circular-progress
:thickness 4.0
:value {EWW_RAM.used_mem_perc}
:class {
EWW_RAM?.used_mem_perc > 80 ? "battery-gauge low" :
"battery-gauge"
}
)
))
(defwidget battery []
(box :orientation "v"
:valign "end"