X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/669112020d022b3b9cb023c82230e21d36aa88cf..c179b2461995ca465bd55c022f30b6a3d0d92589:/widgets/bat.lua diff --git a/widgets/bat.lua b/widgets/bat.lua index 09b135f..7b14a9a 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -89,7 +89,7 @@ local function worker(args) ontop = true, replaces_id = bat.id }).id - elseif bat.perc <= 15 + elseif bat_now.perc <= 15 then bat.id = naughty.notify({ text = "plug the cable",