widgets: correctly wrap volume functions

This commit is contained in:
Vincent Bernat 2020-03-08 18:59:01 +01:00
parent 7c58bff7d1
commit 53bff663c3

View file

@ -188,9 +188,9 @@ vicious.register(volwidget, vicious.widgets.volume,
volume = loadrc("volume", "vbe/volume") volume = loadrc("volume", "vbe/volume")
volwidget:buttons(awful.util.table.join( volwidget:buttons(awful.util.table.join(
awful.button({ }, 1, volume.mixer), awful.button({ }, 1, volume.mixer),
awful.button({ }, 3, volume.toggle), awful.button({ }, 3, function() volume.toggle("Master") end),
awful.button({ }, 4, volume.increase), awful.button({ }, 4, function() volume.increase("Master") end),
awful.button({ }, 5, volume.decrease))) awful.button({ }, 5, function() volume.decrease("Master") end)))
-- File systems -- File systems
local fs = { "/", local fs = { "/",