aboutsummaryrefslogtreecommitdiff
path: root/volume.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-02-18 21:42:09 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-02-18 21:42:09 +0100
commit5e1d1e0d47de8fdefb12ce5f45565a39b666e33a (patch)
treef730889afed57eefea4047ae34fc3e30baaaba0e /volume.lua
parent24f23fa072d408affe60140c088000695b13512a (diff)
downloadvicious-legacy-5e1d1e0d47de8fdefb12ce5f45565a39b666e33a.tar.xz
volume: suggest appending card ID or other options
Widget type takes the mixer control as an argument, i.e. "PCM" but can take optional amixer options, i.e. "PCM -c 1".
Diffstat (limited to 'volume.lua')
-rw-r--r--volume.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/volume.lua b/volume.lua
index 8e65d0e..37303c9 100644
--- a/volume.lua
+++ b/volume.lua
@@ -19,9 +19,9 @@ module("vicious.volume")
-- {{{ Volume widget type
-local function worker(format, channel)
- -- Get mixer data
- local f = io.popen("amixer get " .. channel)
+local function worker(format, warg)
+ -- Get mixer control contents
+ local f = io.popen("amixer get " .. warg)
local mixer = f:read("*all")
f:close()