mirror of https://github.com/lcpz/lain.git
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:
parent
57e595c656
commit
e2a279d991
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue