From 9371839401f89afacf6919671fff4a414b4bb841 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 6 Mar 2010 22:12:47 +0100 Subject: 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. --- bat.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bat.lua') 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"] = "-" } -- cgit v1.2.3