That's what I thought. You are using mywibox for both the top and the
bottom. You need to make a second one with a different name (unless I am
mistaken).
Outside of the loop declare a new variable (mywibox2 = {}). Then in the
loop, create the wibox.
mywibox2[s] = awful.wibox({ position = "bottom", screen = s }).
Then declare a new layout.
local layout2 = wibox.layout.align.horizontal()
Then add the sys widget (assuming that is all you want right now) to the
layout.
layout2:set_left(sys)
Finally, set the wibox's widget.
mywibox2[s]:set_widget(layout2)
That should work.
On Wed, Jan 2, 2013 at 1:19 AM, Shuuichi Nitori
<[email protected]>wrote:
> well my top wibox is the default configuration that comes with awesome 3.5
> -- Create a promptbox for each screen
> mypromptbox[s] = awful.widget.prompt()
> -- Create an imagebox widget which will contains an icon indicating
> which layout we're using.
> -- We need one layoutbox per screen.
> mylayoutbox[s] = awful.widget.layoutbox(s)
> mylayoutbox[s]:buttons(awful.util.table.join(
> awful.button({ }, 1, function ()
> awful.layout.inc(layouts, 1) end),
> awful.button({ }, 3, function ()
> awful.layout.inc(layouts, -1) end),
> awful.button({ }, 4, function ()
> awful.layout.inc(layouts, 1) end),
> awful.button({ }, 5, function ()
> awful.layout.inc(layouts, -1) end)))
> -- Create a taglist widget
> mytaglist[s] = awful.widget.taglist(s,
> awful.widget.taglist.filter.all, mytaglist.buttons)
>
> -- Create a tasklist widget
> mytasklist[s] = awful.widget.tasklist(s,
> awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
>
> -- Create the wibox
> mywibox[s] = awful.wibox({ position = "top", screen = s, height = 14 })
>
> -- Widgets that are aligned to the left
> local left_layout = wibox.layout.fixed.horizontal()
> left_layout:add(mylauncher)
> left_layout:add(mytaglist[s])
> left_layout:add(mypromptbox[s])
>
> -- Widgets that are aligned to the right
> local right_layout = wibox.layout.fixed.horizontal()
> if s == 1 then right_layout:add(wibox.widget.systray()) end
> right_layout:add(mytextclock)
> right_layout:add(mylayoutbox[s])
>
> -- Now bring it all together (with the tasklist in the middle)
> local layout = wibox.layout.align.horizontal()
> layout:set_left(left_layout)
> layout:set_middle(mytasklist[s])
> layout:set_right(right_layout)
>
> mywibox[s]:set_widget(layout)
>