Add -M to amixer.

-M     Use the mapped volume for evaluating the percentage representation like alsamixer, to be more natural for human ear.
This commit is contained in:
WooParadog 2014-07-26 10:17:49 +08:00 committed by copycat-killer
parent a776679884
commit b9e2596cbd
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ local function worker(args)
alsa.widget = wibox.widget.textbox('') alsa.widget = wibox.widget.textbox('')
function alsa.update() 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") local mixer = f:read("*all")
f:close() f:close()