Merge branch 'master' of https://github.com/streetturtle/awesome-wm-widgets
This commit is contained in:
commit
60eff0c48f
|
@ -89,7 +89,7 @@ watch("acpi", 10,
|
||||||
|
|
||||||
charge = charge + batt.charge
|
charge = charge + batt.charge
|
||||||
end
|
end
|
||||||
charge = charge // #battery_info -- use average charge for battery icon
|
charge = charge / #battery_info -- use average charge for battery icon
|
||||||
|
|
||||||
if (charge >= 0 and charge < 15) then
|
if (charge >= 0 and charge < 15) then
|
||||||
batteryType = "battery-empty%s-symbolic"
|
batteryType = "battery-empty%s-symbolic"
|
||||||
|
|
|
@ -60,7 +60,7 @@ watch("acpi", 10,
|
||||||
|
|
||||||
charge = charge + batt.charge
|
charge = charge + batt.charge
|
||||||
end
|
end
|
||||||
charge = charge // #battery_info -- use average charge for battery icon
|
charge = charge / #battery_info -- use average charge for battery icon
|
||||||
|
|
||||||
widget.value = charge / 100
|
widget.value = charge / 100
|
||||||
if status == 'Charging' then
|
if status == 'Charging' then
|
||||||
|
|
Loading…
Reference in New Issue