feat: add battery metric to eww bar
This commit is contained in:
@@ -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 []
|
||||||
|
|||||||
Reference in New Issue
Block a user