feat: add battery metric to eww bar

This commit is contained in:
2026-04-28 13:11:24 -04:00
parent 456ef020aa
commit 03c3c74683
+5 -1
View File
@@ -19,7 +19,11 @@
(metric :label "󰻠"
:tooltip "${round(EWW_CPU.avg, 0)}% average CPU usage"
:value {round((EWW_CPU.avg), 0)}
:onchange "")))
: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 "")))
(defwidget workspaces []
(box :class "workspaces"