From a5701cc70cec6188929cdc96c099644142cf18bf Mon Sep 17 00:00:00 2001 From: Sorky <43520033+Sorky@users.noreply.github.com> Date: Sun, 4 Nov 2018 17:10:18 +1100 Subject: [PATCH] Add mouse-middle-click on layout box icon Middle-click to go straight to the first layout --- themes/blackburn/theme.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/blackburn/theme.lua b/themes/blackburn/theme.lua index 8b33621..b58d524 100644 --- a/themes/blackburn/theme.lua +++ b/themes/blackburn/theme.lua @@ -227,6 +227,7 @@ function theme.at_screen_connect(s) s.mylayoutbox = awful.widget.layoutbox(s) s.mylayoutbox:buttons(my_table.join( awful.button({ }, 1, function () awful.layout.inc( 1) end), + awful.button({ }, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), awful.button({ }, 3, function () awful.layout.inc(-1) end), awful.button({ }, 4, function () awful.layout.inc( 1) end), awful.button({ }, 5, function () awful.layout.inc(-1) end)))