From: Luke Bonham Date: Tue, 24 Jan 2017 19:57:00 +0000 (+0100) Subject: Merge pull request #286 from aajjbb/fix-alsa-channel X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/fc5974a9c2838efa8dedbd350d9623e193ab71a3?hp=5af7a8c1726862f770b84e46cfa0eee064eac0fb Merge pull request #286 from aajjbb/fix-alsa-channel Make amixer get information only from the selected channel --- diff --git a/widgets/alsa.lua b/widgets/alsa.lua index 96f30b3..cb7ba49 100644 --- a/widgets/alsa.lua +++ b/widgets/alsa.lua @@ -23,8 +23,8 @@ local function worker(args) local timeout = args.timeout or 5 local settings = args.settings or function() end - alsa.cmd = args.cmd or "amixer" alsa.channel = args.channel or "Master" + alsa.cmd = args.cmd or "amixer sget " .. alsa.channel alsa.togglechannel = args.togglechannel if alsa.togglechannel then