31 lines
801 B
Plaintext
31 lines
801 B
Plaintext
(defwidget sys []
|
|
(box
|
|
:class "module"
|
|
:space-evenly false
|
|
:spacing 5
|
|
(circular-progress
|
|
:value {EWW_CPU.avg}
|
|
:class "cpubar"
|
|
:thickness 3
|
|
(button
|
|
:onclick "${EWW_CMD} open --toggle system-menu"
|
|
(label :class "icon-text" :text "")))
|
|
|
|
(circular-progress
|
|
:value {memory.percent}
|
|
:class "membar"
|
|
:thickness 3
|
|
(button
|
|
:onclick "${EWW_CMD} open --toggle system-menu"
|
|
(label :class "icon-text" :text "")))
|
|
|
|
(circular-progress
|
|
:value {battery.percentage}
|
|
:class "batbar"
|
|
:style "color: ${battery.color};"
|
|
:thickness 3
|
|
(button
|
|
:tooltip "${battery.percentage}%"
|
|
:onclick "${EWW_CMD} open --toggle system-menu"
|
|
(label :class "icon-text" :text "")))))
|