Fixed batat module name and expanded bat states and symbols.
This commit is contained in:
parent
b331cb1570
commit
9cd250be0b
|
@ -9,7 +9,7 @@ local table = { insert = table.insert }
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
||||||
-- Bat: provides state, charge, and remaining time for all batteries using acpitool
|
-- Batat: provides state, charge, and remaining time for all batteries using acpitool
|
||||||
module("vicious.batat")
|
module("vicious.batat")
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,9 @@ function worker(format)
|
||||||
-- Initialise tables
|
-- Initialise tables
|
||||||
local battery_info = {}
|
local battery_info = {}
|
||||||
local battery_state = {
|
local battery_state = {
|
||||||
["charged"] = "+",
|
["full"] = "*",
|
||||||
|
["unknown"] = " "
|
||||||
|
["charged"] = "*",
|
||||||
["charging"] = "+",
|
["charging"] = "+",
|
||||||
["discharging"] = "-"
|
["discharging"] = "-"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue