widget.bat: add failsafe AC
This commit is contained in:
parent
819600e94a
commit
f42fe32d99
1 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ local function factory(args)
|
||||||
end
|
end
|
||||||
|
|
||||||
bat.batteries = args.batteries or (args.battery and {args.battery}) or {}
|
bat.batteries = args.batteries or (args.battery and {args.battery}) or {}
|
||||||
bat.ac = args.ac
|
bat.ac = args.ac or "AC0"
|
||||||
|
|
||||||
function bat.get_batteries()
|
function bat.get_batteries()
|
||||||
helpers.line_callback("ls -1 " .. pspath, function(line)
|
helpers.line_callback("ls -1 " .. pspath, function(line)
|
||||||
|
|
Loading…
Add table
Reference in a new issue