Merge pull request #56 from wooparadog/volumn-for-human

Show more human ear friendly volumn in alsa and alsabar widgets
This commit is contained in:
Luke Bonham 2014-07-26 14:12:54 +02:00
commit 0f35771a52
2 changed files with 2 additions and 2 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()

View File

@ -115,7 +115,7 @@ local function worker(args)
function alsabar.update() function alsabar.update()
-- Get mixer control contents -- Get mixer control contents
local f = io.popen("amixer get " .. alsabar.channel) local f = io.popen("amixer -M get " .. alsabar.channel)
local mixer = f:read("*all") local mixer = f:read("*all")
f:close() f:close()