From 4b533100a034d379a450046325eb611a97bd5855 Mon Sep 17 00:00:00 2001 From: pmakhov Date: Mon, 11 Dec 2017 17:09:22 -0500 Subject: [PATCH] make battery arc local --- batteryarc-widget/batteryarc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 29e8bcd..e1ab203 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -36,7 +36,7 @@ local batteryarc = wibox.widget { } -- mirror the widget, so that chart value increases clockwise -batteryarc_widget = wibox.container.mirror(batteryarc, { horizontal = true }) +local batteryarc_widget = wibox.container.mirror(batteryarc, { horizontal = true }) watch("acpi", 10, function(widget, stdout, stderr, exitreason, exitcode) @@ -109,3 +109,5 @@ function show_battery_warning() width = 300, } end + +return batteryarc_widget \ No newline at end of file