Re: 1)Moving tagged windows to current WS. 2) Rearange WS's

£ukasz <blurrpp-/[email protected]> Tue, 4 Jan 2011 12:57:49 -0800 (PST)
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
> > Hi ,=0A> > its me again :). Let say that i tagged few windows on=0A> so=
me=0A> > workspaces, i moved to another one and i want all=0A> tagged windo=
ws=0A> > moved here. Simple function which do it is =0A> > =0A> > =0A> > lo=
cal function tagged_move(group)=0A> >=A0 =A0 local=0A> >=0A> region=3DWMPle=
x.attach_new(group,{type=3D"WGroupWS",name=3D"name",...})=0A> > ioncore.tag=
ged_attach(region) end=0A> > =0A> > it works ok when destination ws is empt=
y, problems=0A> appears when its=0A> > not. I think the nice way to do it w=
oild be by using=0A> > 'ioncore.tagged_first(true)' or 'ioncore.tagged_i()'=
=0A> but first one=0A> > some how doesnt want to return tagged region. Im s=
ure=0A> that there is=0A> > some extremely simple solution for it so if som=
ebody=0A> knows it=A0 pls=0A> > help.=0A> =0A> Umm, what should be the resu=
lt? I tag few windows and then=0A> attach them=0A> into one frame (as many =
"tabs") into selected frame just=0A> by=0A> ioncore.tagged_attach(that_fram=
e). There is context menu=0A> entry for this=0A> in ion3plus (it should be =
in ion3 as well). I do not use=0A> floating=0A> windows, thus I cannot imag=
ine what result you want.=0A=0AI didnt say that I'm talking about pwm3 not =
ion3, that I think confused You. In ion its not problem becouse u have alwa=
ys frame you can attach to tagged windows/regions by "META+K"+"A" ( or what=
ever you defined). In pwm3 you have to specific object where you want to at=
tach it. I get what i wanted to in pwm  by=0A=0Alocal function tagged_move(=
obj)=0A=09local region=3DWMPlex.mx_current(obj)=0A=09ioncore.tagged_attach(=
region)=0Aend=0A=0Aruned in WScreen section.=0A=0A=0A=0A> =0A> > My second =
question is if it's possible to rearange WS=0A> and how to do=0A> > it?. Ti=
ll now i havent had enough time to think about=0A> it but it wold=0A> > be =
nice possibility=0A> =0A> What do you mean by rearanging?=0A> =0A> * If you=
 want to switch order of tabs, then there is=0A> function=0A> =A0=A0=A0WMPl=
ex.dec_index and WMPlex.inc_index=0A> =0A> * If yoy want to add and move so=
me splits, just do it=0A> manually and save=0A> =A0 it to your session.=0A>=
 =0A> =A0 If you want such workspace to be created=0A> "dynamically", then =
you can=0A> =A0 isolate this workspace from your session=0A> =A0 file (save=
d_layout.lua) and use=0A> ioncore.create_ws(scr, tmpl, layout)=0A> =A0 and =
ioncore.deflayout(name, tab).=0A> =0A> =A0 Note that I did not ever tried t=
hat. I just created=0A> one workspace=0A> =A0 which satisfies all my needs.=
 Namely I discared all=0A> splits (to have=0A> =A0 one frame) on my laptop,=
 then I attached new WTiling=0A> into this frame=0A> =A0 and I split this W=
Tiling. Thus my windows are nearly=0A> fullscreen=0A> =A0 (if it is sibblin=
g of the nested WTiling) or they=0A> occupy smaller=0A> =A0 part, if they a=
re descendants of the nested WTiling.=0A> I can switch=0A> =A0 between them=
 with my pen (I have tablet) or mouse.=0A> This is especially=0A> =A0 good =
when the main work is browsing internet, as=0A> browsing is=0A> =A0 traditi=
onally mouse-oriented (some technologies from=0A> hell, such=0A> =A0 as ado=
be flash requires use of mouse when browsing=0A> internet).=0A=0A thanks, W=
MPlex.dec_index WMPlex.inc_index works exactly i want to, but again in pwm =
i had to speific correct region and wmplex.=0A=0ALukas=0A=0A=0A=0A