eww is now purdier

This commit is contained in:
Chris Cochrun 2023-02-27 05:44:07 -06:00
parent 7e188e685e
commit 27b6d336ee
3 changed files with 42 additions and 55 deletions

View file

@ -45,7 +45,7 @@ $darktransparent: rgba(40, 42, 54, 0.97);
background-color: $backtransparent; background-color: $backtransparent;
border-radius: 20px 20px 20px 20px; border-radius: 20px 20px 20px 20px;
box-shadow: 5px 5px 4px 4px #202020; box-shadow: 5px 5px 4px 4px #202020;
margin: 8px 18px 13px 18px; margin: 6px 18px 13px 18px;
} }
.module { .module {
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@ -101,6 +101,15 @@ tooltip label {
color: $base05; color: $base05;
} }
.right_modules {
padding-bottom: 2px;
padding-right: 5px;
}
.separ {
padding-bottom: 3px;
}
.membar { .membar {
color: $base0A; color: $base0A;
background-color: $base01; background-color: $base01;
@ -196,9 +205,11 @@ tooltip label {
margin: 8px 11px 8px 8px; margin: 8px 11px 8px 8px;
} }
.iconvol { .iconvol {
color: $base08;
margin: 10px 11px 8px 8px; margin: 10px 11px 8px 8px;
} }
.iconbright { .iconbright {
color: $base09;
margin: 10px 14px 10px 8px; margin: 10px 14px 10px 8px;
} }
.iconbat, .iconmem, .iconcpu .iconvol .iconbright { .iconbat, .iconmem, .iconcpu .iconvol .iconbright {

View file

@ -164,17 +164,13 @@
:class "bat_module" :class "bat_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
:spacing 5 :spacing 0
:visible {HOST == "kaladin" ? "false" : "true"} :visible {HOST == "kaladin" ? "false" : "true"}
(circular-progress
:value {EWW_BATTERY["BAT1"].capacity}
:class "batbar"
: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 (label
:text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%" :text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%"
:class "bat_label"))) :class "bat_label")))
@ -184,37 +180,26 @@
:class "bright_module" :class "bright_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
:spacing 5
(circular-progress
:class "brightbar"
:value brightness_percent
:thickness 3
(button (button
:class "iconbright" :class "iconbright"
;; :onclick "scripts/pop audio" ;; :onclick "scripts/pop audio"
:tooltip "${brightness_percent}%" :tooltip "${brightness_percent}%"
"")) "")
(label (label
:text brightness_percent :text brightness_percent
:class "bright_label"))) :class "bright_label"))
)
(defwidget volume [] (defwidget volume []
(box (box
:class "vol_module" :class "vol_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
:spacing 5
(circular-progress
:class "volbar"
:value volume_percent
:thickness 3
:max 150
:min 0
(button (button
:class "iconvol" :class "iconvol"
:onclick "scripts/pop audio" :onclick "scripts/pop audio"
:tooltip "${volume_percent}%" :tooltip "${volume_percent}%"
"墳")) "墳")
(label (label
:text volume_percent :text volume_percent
:class "vol_label"))) :class "vol_label")))
@ -224,16 +209,11 @@
:class "cpu_module" :class "cpu_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
:spacing 5
(circular-progress
:value {EWW_CPU.avg}
:class "cpubar"
: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 (label
:text "${round(EWW_CPU.avg, 0)}%" :text "${round(EWW_CPU.avg, 0)}%"
:class "cpu_label"))) :class "cpu_label")))
@ -243,16 +223,11 @@
:class "mem_module" :class "mem_module"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
:spacing 5
(circular-progress
:value {EWW_RAM.used_mem_perc}
:class "membar"
: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 (label
:text "${round(EWW_RAM.used_mem_perc, 0)}%" :text "${round(EWW_RAM.used_mem_perc, 0)}%"
:class "mem_label"))) :class "mem_label")))
@ -298,7 +273,7 @@
(defwidget sep [] (defwidget sep []
(box (box
:class "module-2" :class "separator"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
(label (label

View file

@ -7,6 +7,7 @@ icontheme=$(grep "gtk-icon-theme-name" "$HOME"/.config/gtk-3.0/settings.ini | cu
workspaces() { workspaces() {
if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace
string=${1:14} string=${1:14}
echo $string
export title=$(echo $string | sed 's/.*,//') export title=$(echo $string | sed 's/.*,//')
class="${string/,*/}" class="${string/,*/}"
# export title=${string/,/, } # export title=${string/,/, }