added temp to resource widget

This commit is contained in:
2026-06-06 14:08:35 -05:00
parent c9e98a8664
commit f64b88eb68

View File

@@ -235,12 +235,25 @@
(for core in {EWW_CPU.cores} (for core in {EWW_CPU.cores}
(label :tooltip "${core.freq} Mhz" :text "${core.core}: ${core.usage}%"))) (label :tooltip "${core.freq} Mhz" :text "${core.core}: ${core.usage}%")))
(box (box
:orientation "v"
:space-evenly true
(temps)
(box
:class "monitor" :class "monitor"
(graph (graph
:thickness 2 :thickness 2
:time-range "10s" :time-range "10s"
:max 100 :max 100
:value {round(EWW_CPU.avg,1)})) :value {round(EWW_CPU.avg,1)})))
))
(defwidget temps []
(box
:class "monitor"
:orientation "v"
:space-evenly true
(label :text "cpu temp: ${EWW_TEMPS.K10TEMP_TCTL} C")
(label :text "gpu temp: ${EWW_TEMPS.AMDGPU_JUNCTION} C")
)) ))
(defwidget ram [] (defwidget ram []