Open Alsamixer on left mouse click.

This commit is contained in:
Kolan Sh 2015-02-13 22:02:06 +03:00
parent e6733957eb
commit 665d28ff23
1 changed files with 2 additions and 0 deletions

2
wi.lua
View File

@ -72,6 +72,7 @@ volicon = wibox.widget.imagebox()
volicon:set_image(beautiful.widget_vol)
volicon:buttons(
awful.util.table.join(
awful.button({ }, 1, function () awful.util.spawn("urxvt -e alsamixer -- --no-color --view=all") end),
awful.button({ }, 4, function () awful.util.spawn("amixer set Master 1%+") end),
awful.button({ }, 5, function () awful.util.spawn("amixer set Master 1%-") end)
)
@ -79,6 +80,7 @@ volicon:buttons(
volpct = wibox.widget.textbox()
volpct:buttons(
awful.util.table.join(
awful.button({ }, 1, function () awful.util.spawn("urxvt -e alsamixer -- --no-color --view=all") end),
awful.button({ }, 4, function () awful.util.spawn("amixer set Master 1%+") end),
awful.button({ }, 5, function () awful.util.spawn("amixer set Master 1%-") end)
)