summaryrefslogtreecommitdiff
path: root/batteryarc-widget
diff options
context:
space:
mode:
authorpmakhov <pavel.makhov@savoirfairelinux.com>2017-12-11 17:09:22 -0500
committerpmakhov <pavel.makhov@savoirfairelinux.com>2017-12-11 17:09:22 -0500
commit4b533100a034d379a450046325eb611a97bd5855 (patch)
tree91e4d5f2942612f8a43dbb1636f2fabbd911f8af /batteryarc-widget
parent6539d81b5caeb11604186b2ae1d9430ba0fcd9f0 (diff)
make battery arc local
Diffstat (limited to 'batteryarc-widget')
-rw-r--r--batteryarc-widget/batteryarc.lua4
1 files changed, 3 insertions, 1 deletions
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