some visibility of the mem, cpu, and bat bars

This commit is contained in:
Chris Cochrun 2022-12-18 06:10:10 -06:00
parent 67193c257d
commit 28645f7175
2 changed files with 69 additions and 46 deletions

View file

@ -153,16 +153,27 @@ tooltip label {
} }
.iconmem { .iconmem {
color: $base0A; color: $base0A;
padding: 9px 12px 8px 8px;
} }
.iconbat { .iconbat {
color: $base0B; color: $base0E;
margin: 10px 10px 8px 10px;
} }
.iconcpu { .iconcpu {
color: $base0B; color: $base0D;
margin: 8px 11px 8px 8px;
} }
.iconbat, .iconmem, .iconcpu { .iconbat, .iconmem, .iconcpu {
font-size: 15; font-size: 12;
margin: 10px; }
.mem_label {
color: $base0A;
}
.cpu_label {
color: $base0D;
}
.bat_label {
color: $base0E;
} }
.bright_icon { .bright_icon {
font-size: 18; font-size: 18;
@ -185,19 +196,19 @@ tooltip label {
.mem_module { .mem_module {
background-color: rgba(00, 00, 00, 0.0); background-color: rgba(00, 00, 00, 0.0);
border-radius: 16px; border-radius: 16px;
margin: 0px 10px 0px 10px; margin: 0px 0px 0px 5px;
} }
.bat_module { .bat_module {
background-color: rgba(00, 00, 00, 0.0); background-color: rgba(00, 00, 00, 0.0);
border-radius: 16px; border-radius: 16px;
margin: 0px 10px 0px 10px; margin: 0px 5px 0px 0px;
} }
.cpu_module { .cpu_module {
background-color: rgba(00, 00, 00, 0.0); background-color: rgba(00, 00, 00, 0.0);
border-radius: 16px; border-radius: 16px;
margin: 0px 10px 0px 10px; margin: 0px 5px 0px 5px;
} }
.works { .works {

View file

@ -132,49 +132,61 @@
WLAN_ICON)))) WLAN_ICON))))
(defwidget bat [] (defwidget bat []
(box (box
:class "bat_module" :class "bat_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
(circular-progress :spacing 5
:value {EWW_BATTERY["BAT1"].capacity} (circular-progress
:class "batbar" :value {EWW_BATTERY["BAT1"].capacity}
:thickness 4 :class "batbar"
(button :thickness 3
:onclick "scripts/pop system" (button
:class "iconbat" :onclick "scripts/pop system"
:tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left" :class "iconbat"
" ")))) :tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left"
""))
(label
:text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%"
:class "bat_label")))
(defwidget cpu [] (defwidget cpu []
(box (box
:class "cpu_module" :class "cpu_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
(circular-progress :spacing 5
:value {EWW_CPU.avg} (circular-progress
:class "cpubar" :value {EWW_CPU.avg}
:thickness 4 :class "cpubar"
(button :thickness 3
:onclick "scripts/pop system" (button
:class "iconcpu" :onclick "scripts/pop system"
:tooltip "using ${EWW_CPU.avg}% of cpu" :class "iconcpu"
" ")))) :tooltip "using ${EWW_CPU.avg}% of cpu"
""))
(label
:text "${round(EWW_CPU.avg, 0)}%"
:class "cpu_label")))
(defwidget mem [] (defwidget mem []
(box (box
:class "mem_module" :class "mem_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
(circular-progress :spacing 5
:value {EWW_RAM.used_mem_perc} (circular-progress
:class "membar" :value {EWW_RAM.used_mem_perc}
:thickness 4 :class "membar"
(button :thickness 3
:onclick "scripts/pop system" (button
:class "iconmem" :onclick "scripts/pop system"
:tooltip "using ${EWW_RAM.used_mem_perc}% ram" :class "iconmem"
" ")))) :tooltip "using ${EWW_RAM.used_mem_perc}% ram"
""))
(label
:text "${round(EWW_RAM.used_mem_perc, 0)}%"
:class "mem_label")))
(defwidget kdeconnect [] (defwidget kdeconnect []
(box (box