rc.lua: Use the modern layoutbox constructor

This commit is contained in:
Emmanuel Lepage Vallee 2018-12-26 21:24:55 -05:00
parent 56b242906d
commit 8eda69adbe
1 changed files with 10 additions and 6 deletions

View File

@ -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,