X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5ebdab637085b1fbf20e47aba6c04f04191bf0ce..73e43b92fd96fbe3d778479307ee243953b32750:/widgets/bat.lua?ds=sidebyside diff --git a/widgets/bat.lua b/widgets/bat.lua index 789c694..fd99e4d 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -74,7 +74,7 @@ local function worker(args) bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12) -- notifications for low and critical states - if bat_new.status == "Discharging" + if bat_now.status == "Discharging" then if bat_now.perc <= 5 then