X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a776679884b5d5f6ea026cc215d262b036f6b8b5..d2b3a0804d6f12d1b5a37c444936c37a7a70c0ae:/widgets/alsabar.lua diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 4430e76..8675cb5 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -115,8 +115,8 @@ local function worker(args) function alsabar.update() -- Get mixer control contents - local f = io.popen("amixer get " .. alsabar.channel) - local mixer = f:read("*all") + local f = io.popen("amixer -M get " .. alsabar.channel) + local mixer = f:read("*a") f:close() -- Capture mixer control state: [5%] ... ... [on]