From 0f92560ca1dcd8ac38ef4aa6c80d95f4484c4bf8 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Sat, 14 Sep 2013 14:15:57 +0200 Subject: [PATCH 1/1] bat: rem nil value fixed --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5