diff options
author | Adam Lee <adam8157@gmail.com> | 2013-12-04 09:32:14 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2013-12-27 17:21:35 +0100 |
commit | bfbc1bdd5158ab88511de5670498647e9e29db45 (patch) | |
tree | 430629d19164d8767462d5a4d36507a36578eb48 | |
parent | 3ef0f11d8ecea0c6461db4d5bbf2d42fcd030153 (diff) | |
download | vicious-legacy-bfbc1bdd5158ab88511de5670498647e9e29db45.tar.xz |
volume: get the normalized volume like alsamixer and DE's indicator
Or the percentage value will be different from alsamixer or desktop
environment's indicator, which confuses users.
Quote from amixer's manpage, "Use the mapped volume for evaluating the
percentage representation like alsamixer, to be more natural for human
ear."
ref:
http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsamixer/volume_mapping.c
Signed-off-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
-rw-r--r-- | widgets/volume.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/volume.lua b/widgets/volume.lua index 3baa7e6..2a7d377 100644 --- a/widgets/volume.lua +++ b/widgets/volume.lua @@ -26,7 +26,7 @@ local function worker(format, warg) } -- Get mixer control contents - local f = io.popen("amixer get " .. warg) + local f = io.popen("amixer -M get " .. warg) local mixer = f:read("*all") f:close() |