X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8c8d2925a5e108f4909f4ac06f95efc638fe950e..80075e34d5ba4186901d311c0f469aefe0449476:/widgets/bat.lua diff --git a/widgets/bat.lua b/widgets/bat.lua index 22584db..a6a8b4f 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -74,7 +74,7 @@ local function worker(args) first_line(bstr .. "/charge_full")) bat_now.status = first_line(bstr .. "/status") or "N/A" - bat_now.ac = first_line(string.format("/sys/class/power_supply/%s/online", ac)) or "N/A" + bat_now.ac_status = first_line(string.format("/sys/class/power_supply/%s/online", ac)) or "N/A" local time_rat = 0 if bat_now.status == "Charging"