diff options
author | Sam Delmerico <svdelmerico@gmail.com> | 2018-11-26 16:21:48 -0500 |
---|---|---|
committer | Sam Delmerico <svdelmerico@gmail.com> | 2018-11-26 16:21:48 -0500 |
commit | 2cf217dc6c45f206aef0e065fa3ede4c36d73e3b (patch) | |
tree | a257f029216862d7525ca7e6e1818982b4a03085 /batteryarc-widget | |
parent | f369e1cb28a308f6967d7bc31375c637755b1e3f (diff) | |
parent | 1eefac87faefa22b0d3941a9fd4c76010688f59e (diff) |
merge biased battery levels
Diffstat (limited to 'batteryarc-widget')
-rw-r--r-- | batteryarc-widget/README.md | 2 | ||||
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/batteryarc-widget/README.md b/batteryarc-widget/README.md index 6a451d1..cb73e09 100644 --- a/batteryarc-widget/README.md +++ b/batteryarc-widget/README.md @@ -29,7 +29,7 @@ which means that you need to copy the code above and paste it in your **theme.lu Clone repo, include widget and use it in **rc.lua**: ```lua -require("volumearc") +local batteryarc_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc") ... s.mytasklist, -- Middle widget { -- Right widgets diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index b6fa95c..6b28c46 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -71,7 +71,7 @@ watch("acpi -i", 10, charge = charge + batt.charge * capacities[i] end - charge = charge // capacity + charge = charge / capacity widget.value = charge / 100 if status == 'Charging' then |