feat: add battery metric to eww bar

This commit is contained in:
2026-04-28 13:11:24 -04:00
parent 456ef020aa
commit 03c3c74683
@@ -19,6 +19,10 @@
(metric :label "󰻠" (metric :label "󰻠"
:tooltip "${round(EWW_CPU.avg, 0)}% average CPU usage" :tooltip "${round(EWW_CPU.avg, 0)}% average CPU usage"
:value {round((EWW_CPU.avg), 0)} :value {round((EWW_CPU.avg), 0)}
:onchange "")
(metric :label "󱈑"
:tooltip "${round((EWW_BATTERY["BAT0"].capacity + EWW_BATTERY["BAT1"].capacity) / 2, 0)}% battery life"
:value {round((EWW_BATTERY["BAT0"].capacity + EWW_BATTERY["BAT1"].capacity) / 2, 0)}
:onchange ""))) :onchange "")))
(defwidget workspaces [] (defwidget workspaces []