Ok this seems to work for me:
wi_1=widget({type='textbox'})
wi_2=widget({type="textbox"})
wi_3=widget({type="textbox"})
wi_4=widget({type="textbox"})
wi_1.text="wi 1"
wi_2.text="wi 2"
wi_3.text="wi 3"
wi_4.text="wi 4"
progress_wi=awful.widget.progressbar()
progress_wi:set_background_color('white')
progress_wi:set_height(10)
text_wi=widget({type="textbox"})
text_wi.text="text_wi"
vert_wis={progress_wi,text_wi,["layout"]=awful.widget.layout.vertical.flex}
container={wi_1,wi_2,wi_3,vert_wis,wi_4,["layout"]=awful.widget.layout.horizontal.leftright}
then add container to a wibox
There's quite a big space between the vert_wis and wi_4, but I think that
some tweaking should solve this.
Yussi
On Mon, Jul 12, 2010 at 4:40 PM, Andreas Leha <
[email protected]> wrote:
> Hi Yussi,
>
> thanks a lot for your answer on this topic even though my question was not
> clear and the image did not help :-)
>
> Here (http://imgur.com/khNYs.png) is a new image showing what I'd like to
> achieve.
>
> And here is what I thought was the correct code:
>
> middle={progress_wi,
> text_wi,["layout"]=awful.widget.layout.vertical.topdown}
> left={wi_1, wi_2, ["layout"]=awful.widget.layout.horizontal.leftright}
> right={wi_3, middle, wi_4,
> ["layout"]=awful.widget.layout.horizontal.rightleft}
>
> wi_box.widgets={left, right,
> ["layout"]=awful.widget.layout.horizontal.leftright}
>
> But this does not work.
>
> Can you have a new guess what I am to do based on this info?
>
> Thanks in advance,
> Cheers,
> Andreas
>
>
> Am 11.07.2010 17:22, schrieb yussi divnal:
>
> try something like this:
> top={wi_1,wi_2,["layout"]=awful.widget.layout.horizontal.leftright}
>
> middle={progress_bar_wi,["layout"]=awful.widget.layout.horizontal.leftright}
>
> bottom={wi_a,wi_b,text_wi,wi_c,["layout"]=awful.widget.layout.horizontal.leftright}
>
>
> wi_box.widgets={top,middle,bottom,["layout"]=awful.widget.layout.vertical.flex}
>
> of the top of my head. (your image didn't help, and I'm not sure that's the
> desired result anyhow)
>
> Good luck
>
> On Thu, Jul 8, 2010 at 8:08 AM, Andreas Leha <
> [email protected]> wrote:
>
>> No answer. So:
>>
>> Is this not possible? Please tell me.
>> Is the question not understandable? See http://imgur.com/FUfZU.png
>>
>>
>> Andreas
>>
>>
>> Am 25.06.2010 14:14, schrieb Andreas Leha:
>> > Hi all,
>> >
>> > I once had a widget layout, that I liked a lot but seem unable to
>> > reproduce.
>> >
>> > I'd like to get a widget layout as this:
>> > | left aligned | right aligned |
>> > |--------------+---------------+---------------------+----------|
>> > | | | progress bar widget | |
>> > | widgets1 | widgets2 | text widget | widgets3 |
>> >
>> > This is the obvious code I tried:
>> > mywibox.widgets = {
>> > {
>> > widgets1a,
>> > widgets1b,
>> > ...,
>> > layout = awful.widget.layout.horizontal.leftright
>> > },
>> > widgets3a,
>> > widgets3b,
>> > ...,
>> > {
>> > progressbarwidget,
>> > textwidget,
>> > layout = awful.widget.layout.vertical.topdown
>> > },
>> > widgets2a,
>> > widgets2b,
>> > ...,
>> > layout = awful.widget.layout.horizontal.rightleft
>> > }
>> >
>> > But this however ignores the rightleft layout at the topdown layout
>> > and gives me this:
>> > | left aligned | right aligned |
>> > |--------------+---------------------+---------------+----------|
>> > | | progress bar widget | | |
>> > | widgets1 | text widget | widgets2 | widgets3 |
>> >
>> > Can someone tell me how to get my desired result?
>> >
>> > BTW: I am using awesome 3.4.5-1 which is momentarily the version in
>> > debian squeeze.
>> >
>> > Cheers,
>> > Andreas
>> >
>>
>
>