Update pulsebar after setting volume to 100%

This commit is contained in:
Justin Endacott 2016-12-07 03:48:18 +10:00
parent 3676776227
commit 7a26917b93

View file

@ -156,6 +156,7 @@ local function worker(args)
end), end),
awful.button({}, 2, function() awful.button({}, 2, function()
awful.util.spawn(string.format("pactl set-sink-volume %d 100%%", pulsebar.sink)) awful.util.spawn(string.format("pactl set-sink-volume %d 100%%", pulsebar.sink))
pulsebar.update()
end), end),
awful.button({}, 3, function() awful.button({}, 3, function()
awful.util.spawn(string.format("pactl set-sink-mute %d toggle", pulsebar.sink)) awful.util.spawn(string.format("pactl set-sink-mute %d toggle", pulsebar.sink))