make battery arc local

This commit is contained in:
pmakhov 2017-12-11 17:09:22 -05:00
parent 6539d81b5c
commit 4b533100a0

View file

@ -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