From bfbc1bdd5158ab88511de5670498647e9e29db45 Mon Sep 17 00:00:00 2001 From: Adam Lee Date: Wed, 4 Dec 2013 09:32:14 +0100 Subject: 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 Signed-off-by: Adrian C. (anrxc) --- widgets/volume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/volume.lua') 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() -- cgit v1.2.3