My guess;
The sub-table is defined to be leftright while the rest of the items
are defined to be placed from rightleft. I suppose this means that
wherever you place the sub-table, it will always try to occupy the
space on the left side of the wibox, whereas the rest of the boxes
will try to occupy the right side. Changing the layout after
mytasklist[s] to leftright instead of rightleft might help.
Be sure to reload awesome using mod4+ctrl+r. I'm using awesome 3.4-95
(from git) and my default wibox looks like this:
right_aligned = {
layout = awful.widget.layout.horizontal.rightleft
}
if s == 1 then table.insert(right_aligned, mysystray) end
table.insert(right_aligned, mytextclock)
table.insert(right_aligned, mylayoutbox[s])
mywibox[s].widgets = {
mylauncher,
mytaglist[s],
mypromptbox[s],
right_aligned,
mytasklist[s],
layout = awful.widget.layout.horizontal.leftright,
height = mywibox[s].height
}
2010/1/14 袁野 <[email protected]>:
> Hello!
>
> This is in default rc.lua:
>
> mywibox[s].widgets = {
> {
> mylauncher,
> mytaglist[s],
> mypromptbox[s],
> layout = awful.widget.layout.horizontal.leftright
> },
> mylayoutbox[s],
> mytextclock,
> s == 1 and mysystray or nil,
> mytasklist[s],
> layout = awful.widget.layout.horizontal.rightleft
> }
>
> Could someone explain that a little bit to me please? Especially, the
> sub-table is the first item of the full table, but why is it not the
> right most one? And I've also tried switch the position of the sub-table
> and mylayoutbox[s], and why nothing changed in the result?
>
>
> Thank you very much!
>
> Yuan Ye
>
> --
> To unsubscribe, send mail to [email protected].
>
--
To unsubscribe, send mail to [email protected].