aboutsummaryrefslogtreecommitdiff
path: root/bat.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-06 22:12:47 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-06 22:12:47 +0100
commit9371839401f89afacf6919671fff4a414b4bb841 (patch)
tree23cea127ebf91a5bd308bbbb2296bd90a15f9989 /bat.lua
parentdbd6c7b03edf6250b2f5acdf054b3392ace243e9 (diff)
downloadvicious-legacy-9371839401f89afacf6919671fff4a414b4bb841.tar.xz
volume: added real mute support
Widge type returns 1st value as the volume level and 2nd as the mute state of the requested channel represented as a symbol.
Diffstat (limited to 'bat.lua')
-rw-r--r--bat.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/bat.lua b/bat.lua
index 66aab4b..e728155 100644
--- a/bat.lua
+++ b/bat.lua
@@ -24,10 +24,10 @@ local function worker(format, batid)
-- Apple PMU and ACPI/procfs battery widgets are in the [contrib] branch
local battery = helpers.pathtotable("/sys/class/power_supply/" .. batid)
local battery_state = {
- ["Full\n"] = "↯",
- ["Unknown\n"] = "⌁",
- ["Charged\n"] = "↯",
- ["Charging\n"] = "+",
+ ["Full\n"] = "↯",
+ ["Unknown\n"] = "⌁",
+ ["Charged\n"] = "↯",
+ ["Charging\n"] = "+",
["Discharging\n"] = "-"
}