From: Luke Bonham Date: Sat, 26 Jul 2014 12:12:54 +0000 (+0200) Subject: Merge pull request #56 from wooparadog/volumn-for-human X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/0f35771a5267edc09d62788c3d3b7808d83d52c1?hp=57e595c656255e1093d261b255f789017c002bc0 Merge pull request #56 from wooparadog/volumn-for-human Show more human ear friendly volumn in alsa and alsabar widgets --- 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() diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 4430e76..e185c76 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -115,7 +115,7 @@ local function worker(args) function alsabar.update() -- 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") f:close()