make battery arc local
This commit is contained in:
parent
6539d81b5c
commit
4b533100a0
|
@ -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
|
Loading…
Reference in New Issue