diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-09-11 14:49:39 +0200 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-09-11 14:59:47 +0200 |
| commit | 9f20c1f313e20102dd83adeaf091284be1fd82d0 (patch) | |
| tree | d3db386875af532f4fc55c275312c7c787e88f55 /eww/eww.yuck | |
| download | dotfiles-9f20c1f313e20102dd83adeaf091284be1fd82d0.tar.gz dotfiles-9f20c1f313e20102dd83adeaf091284be1fd82d0.zip | |
config
Diffstat (limited to '')
| -rw-r--r-- | eww/eww.yuck | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/eww/eww.yuck b/eww/eww.yuck new file mode 100644 index 0000000..4435928 --- /dev/null +++ b/eww/eww.yuck @@ -0,0 +1,27 @@ +(defwidget labeled-circular-progress [text value] + (overlay + (circular-progress :start-at 75 :thickness 5 + :value value) + text)) + +(defwidget stats [] + (box :orientation "vertical" + (box :orientation "horizontal" + (labeled-circular-progress :text "CPU" :value {EWW_CPU.avg}) + (labeled-circular-progress :text "RAM" :value {EWW_RAM.used_mem_perc})) + (box :orientation "horizontal" + (labeled-circular-progress :text "TMP" :value {EWW_TEMPS.THERMAL_ZONE0.temperature}) + (labeled-circular-progress :text "BAT" :value {EWW_BATTERY.BAT0.capacity})) + (box :orientation "horizontal" + (labeled-circular-progress :text "SDD" :value {EWW_DISK["/"].used_perc}) + (labeled-circular-progress :text "NET" :value {EWW_NET.WLO1.up})))) + +(defwindow test + :monitor 0 + :geometry (geometry :width "25%" :height "25%" + :anchor "center") + :stacking "fg" + :windowtype "normal" + :wm-ignore false + (stats)) + |
