X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/366ba0c1b75a14e3740a4fe956dd5e0225a00fda..b5c2c4cab580d63be5b6e7e54b8c445b87fffaa5:/widgets/alsabar.lua?ds=sidebyside diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index eec3428..b20bc40 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -155,19 +155,23 @@ local function worker(args) end end - alsabar.bar:buttons (awful.util.table.join ( - awful.button ({}, 1, function() + alsabar.bar:buttons(awful.util.table.join ( + awful.button({}, 1, function() awful.util.spawn(alsabar.mixer) end), - awful.button ({}, 3, function() + awful.button({}, 2, function() + awful.util.spawn(string.format("%s set %s 100%%", alsabar.cmd, alsabar.channel)) + pulsebar.update() + end), + awful.button({}, 3, function() awful.util.spawn(string.format("%s set %s toggle", alsabar.cmd, alsabar.channel)) alsabar.update() end), - awful.button ({}, 4, function() + awful.button({}, 4, function() awful.util.spawn(string.format("%s set %s %s+", alsabar.cmd, alsabar.channel, alsabar.step)) alsabar.update() end), - awful.button ({}, 5, function() + awful.button({}, 5, function() awful.util.spawn(string.format("%s set %s %s-", alsabar.cmd, alsabar.channel, alsabar.step)) alsabar.update() end)