]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge pull request #286 from aajjbb/fix-alsa-channel
authorLuke Bonham <copycat-killer@users.noreply.github.com>
Tue, 24 Jan 2017 19:57:00 +0000 (20:57 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Jan 2017 19:57:00 +0000 (20:57 +0100)
Make amixer get information only from the selected channel

widgets/alsa.lua

index 96f30b333e8221c58b40575cf0c069940830c853..cb7ba49add0df8fbfcb8a7d6168e950eda72e467 100644 (file)
@@ -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