eww: Add ram gauge
This commit is contained in:
@ -40,6 +40,7 @@
|
|||||||
(speaker)
|
(speaker)
|
||||||
(temperature)
|
(temperature)
|
||||||
(battery)
|
(battery)
|
||||||
|
(ram)
|
||||||
(box :class "thingy" (systray :orientation "v"))
|
(box :class "thingy" (systray :orientation "v"))
|
||||||
(color_scheme)
|
(color_scheme)
|
||||||
(xwayland)
|
(xwayland)
|
||||||
@ -138,6 +139,21 @@
|
|||||||
(label :text "${current_temp / 1000}°")
|
(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 []
|
(defwidget battery []
|
||||||
(box :orientation "v"
|
(box :orientation "v"
|
||||||
:valign "end"
|
:valign "end"
|
||||||
|
|||||||
Reference in New Issue
Block a user