From: WooParadog Date: Sat, 26 Jul 2014 02:17:49 +0000 (+0800) Subject: Add -M to amixer. X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/e2a279d9914ca92241d3f342cffbd47d3b8684a9?ds=inline Add -M to amixer. -M Use the mapped volume for evaluating the percentage representation like alsamixer, to be more natural for human ear. --- 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()