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

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