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/0f92560ca1dcd8ac38ef4aa6c80d95f4484c4bf8?ds=sidebyside;hp=304773ead13e952de27ca8c27446f7d86aeb7edd 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",