Open Alsamixer on left mouse click.
This commit is contained in:
parent
e6733957eb
commit
665d28ff23
2
wi.lua
2
wi.lua
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue