X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5cde79f1c242afeb6cf748ddcba9e7582787c79d..29ede88b15b260a0ea3fd7b20615cd1c175cdb53:/widgets/bat.lua diff --git a/widgets/bat.lua b/widgets/bat.lua index ba1fa58..09b135f 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -30,9 +30,9 @@ local function worker(args) bat.widget = wibox.widget.textbox('') - function bat.update() + function update() bat_now = { - status = "not present", + status = "Not present", perc = "N/A", time = "N/A", watt = "N/A" @@ -110,7 +110,7 @@ local function worker(args) settings() end - newtimer("bat", timeout, bat.update) + newtimer("bat", timeout, update) return bat.widget end