Merge pull request #484 from andersfugmann/battery_ac

Fix AC detection for battery widget.
This commit is contained in:
Luca CPZ 2021-02-19 10:19:46 +00:00 committed by GitHub
commit 10076e1d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ local function factory(args)
if bstr then
batteries[#batteries + 1] = bstr
else
ac = string.match(line, "A%w+") or "AC0"
ac = string.match(line, "A%w+") or ac
end
end)
end