some visibility of the mem, cpu, and bat bars
This commit is contained in:
parent
67193c257d
commit
28645f7175
2 changed files with 69 additions and 46 deletions
90
eww/eww.yuck
90
eww/eww.yuck
|
@ -132,49 +132,61 @@
|
|||
WLAN_ICON))))
|
||||
|
||||
(defwidget bat []
|
||||
(box
|
||||
:class "bat_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(circular-progress
|
||||
:value {EWW_BATTERY["BAT1"].capacity}
|
||||
:class "batbar"
|
||||
:thickness 4
|
||||
(button
|
||||
:onclick "scripts/pop system"
|
||||
:class "iconbat"
|
||||
:tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left"
|
||||
" "))))
|
||||
(box
|
||||
:class "bat_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:value {EWW_BATTERY["BAT1"].capacity}
|
||||
:class "batbar"
|
||||
:thickness 3
|
||||
(button
|
||||
:onclick "scripts/pop system"
|
||||
:class "iconbat"
|
||||
:tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left"
|
||||
""))
|
||||
(label
|
||||
:text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%"
|
||||
:class "bat_label")))
|
||||
|
||||
(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"
|
||||
" "))))
|
||||
(box
|
||||
:class "cpu_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:value {EWW_CPU.avg}
|
||||
:class "cpubar"
|
||||
:thickness 3
|
||||
(button
|
||||
:onclick "scripts/pop system"
|
||||
:class "iconcpu"
|
||||
:tooltip "using ${EWW_CPU.avg}% of cpu"
|
||||
""))
|
||||
(label
|
||||
:text "${round(EWW_CPU.avg, 0)}%"
|
||||
:class "cpu_label")))
|
||||
|
||||
(defwidget mem []
|
||||
(box
|
||||
:class "mem_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(circular-progress
|
||||
:value {EWW_RAM.used_mem_perc}
|
||||
:class "membar"
|
||||
:thickness 4
|
||||
(button
|
||||
:onclick "scripts/pop system"
|
||||
:class "iconmem"
|
||||
:tooltip "using ${EWW_RAM.used_mem_perc}% ram"
|
||||
" "))))
|
||||
(box
|
||||
:class "mem_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:value {EWW_RAM.used_mem_perc}
|
||||
:class "membar"
|
||||
:thickness 3
|
||||
(button
|
||||
:onclick "scripts/pop system"
|
||||
:class "iconmem"
|
||||
:tooltip "using ${EWW_RAM.used_mem_perc}% ram"
|
||||
""))
|
||||
(label
|
||||
:text "${round(EWW_RAM.used_mem_perc, 0)}%"
|
||||
:class "mem_label")))
|
||||
|
||||
(defwidget kdeconnect []
|
||||
(box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue