eww: Fixed bar's battery widget being critical when battery charges
TODO: Make closure prettier
This commit is contained in:
parent
ff88da4872
commit
d8a00d24dc
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@
|
|||
" ${EWW_BATTERY.BAT0.capacity}% (${round(energy_now/power_now, 0)}h${round((energy_now/power_now - round(energy_now/power_now - 0.5, 0)) * 60, 0)} at ${round(power_now/1000000, 2)}W)" :
|
||||
" ${EWW_BATTERY.BAT0.capacity}%"
|
||||
}"
|
||||
:class "${EWW_BATTERY.BAT0.capacity <= 15 || power_now/1000000 > 25 ? "critical" : EWW_BATTERY.BAT0.capacity <= 40 || power_now/1000000 > 15 ? "warning" : "normal"}")
|
||||
:class "${EWW_BATTERY.BAT0.status == "Discharging" ? EWW_BATTERY.BAT0.capacity <= 15 || power_now/1000000 > 25 ? "critical" : EWW_BATTERY.BAT0.capacity <= 40 || power_now/1000000 > 15 ? "warning" : "normal" : "normal"}")
|
||||
)
|
||||
|
||||
(defwidget volume []
|
||||
|
|
Loading…
Reference in a new issue