From: luke bonham Date: Fri, 26 Sep 2014 10:41:35 +0000 (+0200) Subject: undo 'set card' from projektile/master X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/f5d391e7b6188d1d5847d12ceb64796c56f2d9f1?ds=sidebyside;hp=ee615272a2fcdbe62c4c45b02c3abe27ab7d4fb3 undo 'set card' from projektile/master --- diff --git a/widgets/alsa.lua b/widgets/alsa.lua index 114e2b2..f62a150 100644 --- a/widgets/alsa.lua +++ b/widgets/alsa.lua @@ -23,14 +23,14 @@ local alsa = {} local function worker(args) local args = args or {} local timeout = args.timeout or 5 - local channel = args.channel or "Master -c 1" + local channel = args.channel or "Master" local settings = args.settings or function() end 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 = {}