X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..a274576cfd89c1475aa6b9149ad25fdd5cda1060:/widgets/bat.lua diff --git a/widgets/bat.lua b/widgets/bat.lua index 503c56e..e479fd9 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -8,7 +8,6 @@ --]] local first_line = require("lain.helpers").first_line -local make_widget = require("lain.helpers").make_widget_textbox local newtimer = require("lain.helpers").newtimer local naughty = require("naughty") local wibox = require("wibox") @@ -26,7 +25,7 @@ local setmetatable = setmetatable -- lain.widgets.bat local function worker(args) - local bat = make_widget() + local bat = { widget = wibox.widget.textbox() } local args = args or {} local timeout = args.timeout or 30 local batteries = args.batteries or (args.battery and {args.battery}) or {"BAT0"} @@ -176,7 +175,7 @@ local function worker(args) end newtimer("batteries", timeout, bat.update) - + return bat end