From b2e3d3a0e0d8ef1f7a3b75a4063681dc5f6876f7 Mon Sep 17 00:00:00 2001 From: Sorky <43520033+Sorky@users.noreply.github.com> Date: Sun, 4 Nov 2018 17:18:31 +1100 Subject: [PATCH] Update theme.lua --- themes/vertex/theme.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/vertex/theme.lua b/themes/vertex/theme.lua index ef32eb1..50caa72 100644 --- a/themes/vertex/theme.lua +++ b/themes/vertex/theme.lua @@ -407,10 +407,11 @@ function theme.at_screen_connect(s) -- We need one layoutbox per screen. s.mylayoutbox = awful.widget.layoutbox(s) s.mylayoutbox:buttons(my_table.join( - awful.button({ }, 1, function () awful.layout.inc( 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))) + 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))) s.layoutb = wibox.container.margin(s.mylayoutbox, 8, 11, 3, 3) -- Create a taglist widget