From: luke bonham Date: Sat, 14 Sep 2013 12:15:57 +0000 (+0200) Subject: bat: rem nil value fixed X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/c179b2461995ca465bd55c022f30b6a3d0d92589 bat: rem nil value fixed --- 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",