From 8eda69adbed0983348f401e7d7c8e7fc1c95f0c0 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 26 Dec 2018 21:24:55 -0500 Subject: [PATCH] rc.lua: Use the modern layoutbox constructor --- awesomerc.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/awesomerc.lua b/awesomerc.lua index e7d5e30e4..df6ff8318 100644 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -167,12 +167,16 @@ screen.connect_signal("request::desktop_decoration", function(s) s.mypromptbox = awful.widget.prompt() -- Create an imagebox widget which will contain an icon indicating which layout we're using. -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(gears.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))) + s.mylayoutbox = awful.widget.layoutbox { + screen = s, + buttons = { + 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), + } + } + -- Create a taglist widget s.mytaglist = awful.widget.taglist { screen = s,