2023-11-22 06:14:03 +01:00

120 lines
2.5 KiB
Plaintext

(defwidget cpu-sys-win []
(box
:orientation "v"
:space-evenly false
(box
:orientation "v"
(for core in {EWW_CPU.cores}
(box
:space-evenly false
:class "cpu-core ${core.core}"
(progress
:value {core.usage}
:orientation "h"
:flipped true
:class "cpu-core-usage"
:tooltip "${core.core} @ ${core.freq}Mhz"
)
)
)
)
)
)
(defwidget gpu-sys-win []
(box
:orientation "v"
:space-evenly false
(progress
:value {gpu.devices[0].GRBM2.CommandProcessor-Compute.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "Compute"
)
(progress
:value {gpu.devices[0].GRBM2.CommandProcessor-Fetcher.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "Fetcher"
)
(progress
:value {gpu.devices[0].GRBM2.CommandProcessor-Graphics.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "Graphics"
)
(box :class "spacer")
(progress
:value {gpu.devices[0].gpu_activity.GFX.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "GFX"
)
(progress
:value {gpu.devices[0].gpu_activity.Memory.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "Memory"
)
(progress
:value {gpu.devices[0].gpu_activity.MediaEngine.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "Media"
)
(box :class "spacer")
(progress
:value {100*gpu.devices[0].VRAM.TotalVRAMUsage.value/gpu.devices[0].VRAM.TotalVRAM.value}
:orientation "h"
:flipped true
:class "gpu-core-usage"
:tooltip "VRAM"
)
)
)
(defwidget ram-sys-win []
(box
:space-evenly false
(progress
:value {100*memory.used/memory.total}
:orientation "h"
:flipped true
:class "memory-usage"
:tooltip "RAM"
)
)
)
(defwidget sys-win []
(box
:class "sys-win"
:space-evenly false
:orientation "v"
(cpu-sys-win)
(box :class "spacer")
(box :class "spacer")
(gpu-sys-win)
(box :class "spacer")
(box :class "spacer")
(ram-sys-win)
)
)
(defwindow sys
:monitor 0
:geometry (geometry
:x "0%"
:y "0%"
:anchor "bottom right"
:width "0px"
:height "0px")
(sys-win))