X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8c8d2925a5e108f4909f4ac06f95efc638fe950e..bd1c6e20bbac7be806d4f5e793960c1bc6846797:/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"