From e2a279d9914ca92241d3f342cffbd47d3b8684a9 Mon Sep 17 00:00:00 2001 From: WooParadog Date: Sat, 26 Jul 2014 10:17:49 +0800 Subject: [PATCH] Add -M to amixer. -M Use the mapped volume for evaluating the percentage representation like alsamixer, to be more natural for human ear. --- widgets/alsa.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/alsa.lua b/widgets/alsa.lua index 28bb05c..4ed4f9c 100644 --- a/widgets/alsa.lua +++ b/widgets/alsa.lua @@ -29,7 +29,7 @@ local function worker(args) alsa.widget = wibox.widget.textbox('') function alsa.update() - local f = assert(io.popen('amixer get ' .. channel)) + local f = assert(io.popen('amixer -M get ' .. channel)) local mixer = f:read("*all") f:close() -- 2.39.5