X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c0deea25035a845907210f2a913099343a16162e..d9877c4bedca550478507f268f43e137e4454c24:/widgets/pulsebar.lua?ds=inline diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index 9380a34..8cf8566 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -13,6 +13,7 @@ local naughty = require("naughty") local wibox = require("wibox") local math = { modf = math.modf } local string = { format = string.format, + gmatch = string.gmatch, match = string.match, rep = string.rep } local type = type @@ -135,10 +136,7 @@ local function worker(args) end) end - - timer_id = string.format("pulsebar-%s", pulsebar.sink) - - helpers.newtimer(timer_id, timeout, pulsebar.update) + helpers.newtimer(string.format("pulsebar-%s", pulsebar.sink), timeout, pulsebar.update) return pulsebar end