Added System bars window
This commit is contained in:
121
modules/home/wayland/apps/eww/bar/windows/sys.yuck
Normal file
121
modules/home/wayland/apps/eww/bar/windows/sys.yuck
Normal file
@ -0,0 +1,121 @@
|
||||
|
||||
(defwidget cpu-sys-win []
|
||||
(box
|
||||
:space-evenly false
|
||||
:class "sys-win-sub"
|
||||
(box
|
||||
(for core in {EWW_CPU.cores}
|
||||
(box
|
||||
:space-evenly false
|
||||
:class "cpu-core ${core.core}"
|
||||
(progress
|
||||
:value {core.usage}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "cpu-core-usage"
|
||||
:tooltip "core${core.core} @ ${core.freq}Mhz"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(box :class "spacer" "")
|
||||
(progress
|
||||
:value {100*memory.used/memory.total}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "RAM"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget gpu-sys-win []
|
||||
(box
|
||||
:space-evenly false
|
||||
:class "sys-win-sub"
|
||||
(progress
|
||||
:value {gpu.devices[0].GRBM2.CommandProcessor-Compute.value}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "Compute"
|
||||
)
|
||||
(progress
|
||||
:value {gpu.devices[0].GRBM2.CommandProcessor-Fetcher.value}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "Fetcher"
|
||||
)
|
||||
(progress
|
||||
:value {gpu.devices[0].GRBM2.CommandProcessor-Graphics.value}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "Graphics"
|
||||
)
|
||||
(box :class "spacer" "")
|
||||
(progress
|
||||
:value {gpu.devices[0].gpu_activity.GFX.value}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "GFX"
|
||||
)
|
||||
(progress
|
||||
:value {gpu.devices[0].gpu_activity.Memory.value}
|
||||
:orientation "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "Memory"
|
||||
)
|
||||
(progress
|
||||
:value {gpu.devices[0].gpu_activity.MediaEngine.value}
|
||||
:orientation "v"
|
||||
: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 "v"
|
||||
:flipped true
|
||||
:class "gpu-core-usage"
|
||||
:tooltip "VRAM"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget ram-sys-win []
|
||||
(box
|
||||
:space-evenly false
|
||||
:class "sys-win-sub"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
(defwidget sys-win []
|
||||
(box
|
||||
:class "sys-win"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
(cpu-sys-win)
|
||||
(gpu-sys-win)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow sys
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "0%"
|
||||
:anchor "bottom right"
|
||||
:width "0px"
|
||||
:height "0px")
|
||||
(sys-win))
|
Reference in New Issue
Block a user