mirror of https://github.com/lcpz/lain.git
Merge pull request #484 from andersfugmann/battery_ac
Fix AC detection for battery widget.
This commit is contained in:
commit
10076e1d69
|
@ -43,7 +43,7 @@ local function factory(args)
|
||||||
if bstr then
|
if bstr then
|
||||||
batteries[#batteries + 1] = bstr
|
batteries[#batteries + 1] = bstr
|
||||||
else
|
else
|
||||||
ac = string.match(line, "A%w+") or "AC0"
|
ac = string.match(line, "A%w+") or ac
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue