X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8c8d2925a5e108f4909f4ac06f95efc638fe950e..14cab4ebc3fd8b0e121c41653a55e516a977591a:/widgets/bat.lua?ds=inline 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"