diff options
author | pmakhov <pavel.makhov@savoirfairelinux.com> | 2017-12-11 17:09:22 -0500 |
---|---|---|
committer | pmakhov <pavel.makhov@savoirfairelinux.com> | 2017-12-11 17:09:22 -0500 |
commit | 4b533100a034d379a450046325eb611a97bd5855 (patch) | |
tree | 91e4d5f2942612f8a43dbb1636f2fabbd911f8af | |
parent | 6539d81b5caeb11604186b2ae1d9430ba0fcd9f0 (diff) |
make battery arc local
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 4 |
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 |