some visibility of the mem, cpu, and bat bars
This commit is contained in:
parent
67193c257d
commit
28645f7175
25
eww/eww.scss
25
eww/eww.scss
|
@ -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 {
|
||||||
|
|
24
eww/eww.yuck
24
eww/eww.yuck
|
@ -136,45 +136,57 @@
|
||||||
:class "bat_module"
|
:class "bat_module"
|
||||||
:vexpand "false"
|
:vexpand "false"
|
||||||
:hexpand "false"
|
:hexpand "false"
|
||||||
|
:spacing 5
|
||||||
(circular-progress
|
(circular-progress
|
||||||
:value {EWW_BATTERY["BAT1"].capacity}
|
:value {EWW_BATTERY["BAT1"].capacity}
|
||||||
:class "batbar"
|
:class "batbar"
|
||||||
:thickness 4
|
:thickness 3
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "scripts/pop system"
|
||||||
:class "iconbat"
|
:class "iconbat"
|
||||||
:tooltip "${EWW_BATTERY["BAT1"].capacity}% battery left"
|
: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"
|
||||||
|
:spacing 5
|
||||||
(circular-progress
|
(circular-progress
|
||||||
:value {EWW_CPU.avg}
|
:value {EWW_CPU.avg}
|
||||||
:class "cpubar"
|
:class "cpubar"
|
||||||
:thickness 4
|
:thickness 3
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "scripts/pop system"
|
||||||
:class "iconcpu"
|
:class "iconcpu"
|
||||||
:tooltip "using ${EWW_CPU.avg}% of cpu"
|
: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"
|
||||||
|
:spacing 5
|
||||||
(circular-progress
|
(circular-progress
|
||||||
:value {EWW_RAM.used_mem_perc}
|
:value {EWW_RAM.used_mem_perc}
|
||||||
:class "membar"
|
:class "membar"
|
||||||
:thickness 4
|
:thickness 3
|
||||||
(button
|
(button
|
||||||
:onclick "scripts/pop system"
|
:onclick "scripts/pop system"
|
||||||
:class "iconmem"
|
:class "iconmem"
|
||||||
:tooltip "using ${EWW_RAM.used_mem_perc}% ram"
|
: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
|
||||||
|
|
Loading…
Reference in a new issue