adding cpu to bar

This commit is contained in:
Chris Cochrun 2022-12-15 16:33:14 -06:00
parent 539c55b426
commit 108ade85ab
2 changed files with 32 additions and 2 deletions

View file

@ -146,6 +146,21 @@
:tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left"
" "))))
(defwidget cpu []
(box
:class "cpu_module"
:vexpand "false"
:hexpand "false"
(circular-progress
:value {EWW_CPU.avg}
:class "cpubar"
:thickness 4
(button
:onclick "scripts/pop system"
:class "iconcpu"
:tooltip "using ${EWW_CPU.avg}% of cpu"
" "))))
(defwidget mem []
(box
:class "mem_module"
@ -233,6 +248,7 @@
(wifi)
(sep)
(bat)
(cpu)
(mem)
(sep)
(clock_module)