config/eww ahrc-laptop : batterie

This commit is contained in:
Ahurac 2024-06-10 08:33:20 +02:00
parent edf168c7dc
commit 64f42ea981

View file

@ -1,6 +1,6 @@
(deflisten batterystatus
:initial "unknown"
"listen/battery BAT1"
"listen/battery BAT0"
)
(deflisten workspaces
@ -149,7 +149,7 @@
)
(defwidget battery []
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT1.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT1.capacity} %"
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT0.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT0.capacity} %"
)
(defwindow bar