aboutsummaryrefslogtreecommitdiff
path: root/thermal.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-02 21:48:05 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-02 21:48:05 +0200
commit9d518b83a953f1913083531c8f840bc1e08d60ab (patch)
treea980adab0e9908be67a6f723f046764d056f1fb0 /thermal.lua
parentddf9646b5eb8f016bb226a48112382cd6e5496f7 (diff)
downloadvicious-legacy-9d518b83a953f1913083531c8f840bc1e08d60ab.tar.xz
volume: added mute support
If a channel is muted we return 0. Something like "Muted" would be nice, but lets not break progressbars. If it doesn't concern you, then return what ever you want...
Diffstat (limited to 'thermal.lua')
-rw-r--r--thermal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/thermal.lua b/thermal.lua
index 5c39884..7f31a52 100644
--- a/thermal.lua
+++ b/thermal.lua
@@ -18,7 +18,7 @@ local function worker(format, thermal_zone)
-- Get an ACPI thermal zone
local f = io.open("/proc/acpi/thermal_zone/" .. thermal_zone .. "/temperature")
-- Fix your ACPI setup, or find another source of temperature
- -- exposed trough /sys, if a thermal_zone can't be found.
+ -- exposed trough /sys, if a thermal_zone can't be found
if not f then return {"N/A"} end
local line = f:read("*line")
f:close()