X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/15af359beac1268eb24fca5743e2fd2d5a426d14..e5abb784433ce678273d72eb9716b18ac45b5c82:/widgets/bat.lua?ds=sidebyside diff --git a/widgets/bat.lua b/widgets/bat.lua index 56bba23..f3fcbdf 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -80,7 +80,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"