From 325a6551ded91b6ffe6a2f8467443361d134c0dc Mon Sep 17 00:00:00 2001 From: Paul Cochrane Date: Wed, 11 Jul 2018 12:36:35 +0200 Subject: Fix batteryarc_widget require statement While trying out the widget set I noticed that the installation docs for this widget weren't correct. The `require` statement now works as expected and it matches the pattern used in other installation docs mentioned in the repo. Hope this helps! --- batteryarc-widget/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'batteryarc-widget') 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 -- cgit v1.2.3 From e55a3ae77a8a3aeac8562ccae558048d81ed6e11 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Tue, 25 Sep 2018 17:36:09 -0400 Subject: changed '//' to '/' - seems like it was a typo --- battery-widget/battery.lua | 2 +- batteryarc-widget/batteryarc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'batteryarc-widget') diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index 4cbc314..54a1399 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -89,7 +89,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 if (charge >= 0 and charge < 15) then batteryType = "battery-empty%s-symbolic" 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 -- cgit v1.2.3