X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f7aa28919588d307083b4b5b1c010f26cbc63cde..b9c5e5a2cf7860edb1e1dd9df0e32350b7b9a985:/widgets/alsa.lua diff --git a/widgets/alsa.lua b/widgets/alsa.lua index 28bb05c..f62a150 100644 --- a/widgets/alsa.lua +++ b/widgets/alsa.lua @@ -29,8 +29,8 @@ local function worker(args) alsa.widget = wibox.widget.textbox('') function alsa.update() - local f = assert(io.popen('amixer get ' .. channel)) - local mixer = f:read("*all") + local f = assert(io.popen('amixer -M get ' .. channel)) + local mixer = f:read("*a") f:close() volume_now = {}