pull #238: set step to 1%; added same middle click event to alsabar

This commit is contained in:
copycat-killer 2016-12-04 11:59:08 +01:00
parent c7630b3f10
commit 14d047eaa7
3 changed files with 6 additions and 2 deletions

View file

@ -159,6 +159,10 @@ local function worker(args)
awful.button ({}, 1, function() awful.button ({}, 1, function()
awful.util.spawn(alsabar.mixer) awful.util.spawn(alsabar.mixer)
end), end),
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.button ({}, 3, function()
awful.util.spawn(string.format("%s set %s toggle", alsabar.cmd, alsabar.channel)) awful.util.spawn(string.format("%s set %s toggle", alsabar.cmd, alsabar.channel))
alsabar.update() alsabar.update()

View file

@ -27,7 +27,7 @@ local setmetatable = setmetatable
-- lain.widgets.pulsebar -- lain.widgets.pulsebar
local pulsebar = { local pulsebar = {
sink = 0, sink = 0,
step = "5%", step = "1%",
colors = { colors = {
background = beautiful.bg_normal, background = beautiful.bg_normal,

2
wiki

@ -1 +1 @@
Subproject commit 8555dd328bbf444175fbfece962a50017b219a5e Subproject commit 871d249789aa00159943fc8553fe0cbfc2159cfd