From 0828c20a5512be82c6d044a4f6f61b8975c4c9e3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 5 Jul 2021 17:03:35 -0700 Subject: [PATCH] rc.lua: Be consistent about how the wibar is created. The syntax was a leftover from ancient time where the wibar constructor could not forward the properties to the wibox and when the wibox didn't take a `widget` argument. I make this change mostly to be consistent with the documentation examples. --- awesomerc.lua | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/awesomerc.lua b/awesomerc.lua index 411377de..5981f8a4 100644 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -179,26 +179,27 @@ screen.connect_signal("request::desktop_decoration", function(s) -- @DOC_WIBAR@ -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s }) - - -- @DOC_SETUP_WIDGETS@ - -- Add widgets to the wibox - s.mywibox.widget = { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - mylauncher, - s.mytaglist, - s.mypromptbox, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - mykeyboardlayout, - wibox.widget.systray(), - mytextclock, - s.mylayoutbox, - }, + s.mywibox = awful.wibar { + position = "top", + screen = s, + -- @DOC_SETUP_WIDGETS@ + widget = { + layout = wibox.layout.align.horizontal, + { -- Left widgets + layout = wibox.layout.fixed.horizontal, + mylauncher, + s.mytaglist, + s.mypromptbox, + }, + s.mytasklist, -- Middle widget + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + mykeyboardlayout, + wibox.widget.systray(), + mytextclock, + s.mylayoutbox, + }, + } } end) -- }}}