1
1
Fork 0
mirror of https://github.com/vicious-widgets/vicious synced 2023-12-14 07:13:07 +01:00

Fixed batat module name and expanded bat states and symbols.

This commit is contained in:
Adrian C. (anrxc) 2009-07-29 23:13:24 +02:00
parent b331cb1570
commit 9cd250be0b

View file

@ -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")
@ -18,7 +18,9 @@ function worker(format)
-- Initialise tables
local battery_info = {}
local battery_state = {
["charged"] = "+",
["full"] = "*",
["unknown"] = " "
["charged"] = "*",
["charging"] = "+",
["discharging"] = "-"
}