From 665d28ff23e2099c31ab4ecdd1cdd5f11c250684 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 13 Feb 2015 22:02:06 +0300 Subject: [PATCH] Open Alsamixer on left mouse click. --- wi.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wi.lua b/wi.lua index 4b1758a..27f159e 100644 --- a/wi.lua +++ b/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) )