From 57da210b43ed4b0e555f3f7e7a9c4cd9e281eb43 Mon Sep 17 00:00:00 2001 From: aajjbb Date: Tue, 24 Jan 2017 17:44:27 -0200 Subject: [PATCH] Make amixer get information only from the selected channel --- widgets/alsa.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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