summaryrefslogtreecommitdiff
path: root/batteryarc-widget
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2018-10-04 10:26:43 -0400
committerPavel Makhov <pmakhov@touchtunes.com>2018-10-04 10:26:43 -0400
commit60eff0c48fd201e10b0215d897412799d06d97ab (patch)
treed662cd1d08ea96ae0d5557b2f59c1091d7ecfceb /batteryarc-widget
parent46541730ebd93eb90e006da832c3ba4bdecfe699 (diff)
parente55a3ae77a8a3aeac8562ccae558048d81ed6e11 (diff)
Merge branch 'master' of https://github.com/streetturtle/awesome-wm-widgets
Diffstat (limited to 'batteryarc-widget')
-rw-r--r--batteryarc-widget/batteryarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua
index 48233f3..54b4cf2 100644
--- a/batteryarc-widget/batteryarc.lua
+++ b/batteryarc-widget/batteryarc.lua
@@ -60,7 +60,7 @@ watch("acpi", 10,
charge = charge + batt.charge
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
if status == 'Charging' then