Discussion:
1)Moving tagged windows to current WS. 2) Rearange WS's
£ukasz
2011-01-03 18:24:19 UTC
Permalink
Hi ,
its me again :). Let say that i tagged few windows on some workspaces, i moved to another one and i want all tagged windows moved here. Simple function which do it is


local function tagged_move(group)
local region=WMPlex.attach_new(group,{type="WGroupWS",name="name",...})
ioncore.tagged_attach(region)
end

it works ok when destination ws is empty, problems appears when its not. I think the nice way to do it woild be by using 'ioncore.tagged_first(true)' or 'ioncore.tagged_i()' but first one some how doesnt want to return tagged region. Im sure that there is some extremely simple solution for it so if somebody knows it pls help.


My second question is if it's possible to rearange WS and how to do it?. Till now i havent had enough time to think about it but it wold be nice possibility

Best Regards
Lukas
ebik
2011-01-04 14:32:01 UTC
Permalink
On Mon, 3 Jan 2011 10:24:19 -0800 (PST)
Post by £ukasz
Hi ,
its me again :). Let say that i tagged few windows on some
workspaces, i moved to another one and i want all tagged windows
moved here. Simple function which do it is
local function tagged_move(group)
local
region=WMPlex.attach_new(group,{type="WGroupWS",name="name",...})
ioncore.tagged_attach(region) end
it works ok when destination ws is empty, problems appears when its
not. I think the nice way to do it woild be by using
'ioncore.tagged_first(true)' or 'ioncore.tagged_i()' but first one
some how doesnt want to return tagged region. Im sure that there is
some extremely simple solution for it so if somebody knows it pls
help.
Umm, what should be the result? I tag few windows and then attach them
into one frame (as many "tabs") into selected frame just by
ioncore.tagged_attach(that_frame). There is context menu entry for this
in ion3plus (it should be in ion3 as well). I do not use floating
windows, thus I cannot imagine what result you want.
Post by £ukasz
My second question is if it's possible to rearange WS and how to do
it?. Till now i havent had enough time to think about it but it wold
be nice possibility
What do you mean by rearanging?

* If you want to switch order of tabs, then there is function
WMPlex.dec_index and WMPlex.inc_index

* If yoy want to add and move some splits, just do it manually and save
it to your session.

If you want such workspace to be created "dynamically", then you can
isolate this workspace from your session
file (saved_layout.lua) and use ioncore.create_ws(scr, tmpl, layout)
and ioncore.deflayout(name, tab).

Note that I did not ever tried that. I just created one workspace
which satisfies all my needs. Namely I discared all splits (to have
one frame) on my laptop, then I attached new WTiling into this frame
and I split this WTiling. Thus my windows are nearly fullscreen
(if it is sibbling of the nested WTiling) or they occupy smaller
part, if they are descendants of the nested WTiling. I can switch
between them with my pen (I have tablet) or mouse. This is especially
good when the main work is browsing internet, as browsing is
traditionally mouse-oriented (some technologies from hell, such
as adobe flash requires use of mouse when browsing internet).
Post by £ukasz
Best Regards
Lukas
--
£ukasz
2011-01-04 20:57:49 UTC
Permalink
Post by £ukasz
Post by £ukasz
Hi ,
its me again :). Let say that i tagged few windows on
some
Post by £ukasz
workspaces, i moved to another one and i want all
tagged windows
Post by £ukasz
moved here. Simple function which do it is
local function tagged_move(group)
    local
region=WMPlex.attach_new(group,{type="WGroupWS",name="name",...})
Post by £ukasz
ioncore.tagged_attach(region) end
it works ok when destination ws is empty, problems
appears when its
Post by £ukasz
not. I think the nice way to do it woild be by using
'ioncore.tagged_first(true)' or 'ioncore.tagged_i()'
but first one
Post by £ukasz
some how doesnt want to return tagged region. Im sure
that there is
Post by £ukasz
some extremely simple solution for it so if somebody
knows it  pls
Post by £ukasz
help.
Umm, what should be the result? I tag few windows and then
attach them
into one frame (as many "tabs") into selected frame just
by
ioncore.tagged_attach(that_frame). There is context menu
entry for this
in ion3plus (it should be in ion3 as well). I do not use
floating
windows, thus I cannot imagine what result you want.
I didnt say that I'm talking about pwm3 not ion3, that I think confused You. In ion its not problem becouse u have always frame you can attach to tagged windows/regions by "META+K"+"A" ( or whatever you defined). In pwm3 you have to specific object where you want to attach it. I get what i wanted to in pwm by

local function tagged_move(obj)
local region=WMPlex.mx_current(obj)
ioncore.tagged_attach(region)
end

runed in WScreen section.
Post by £ukasz
Post by £ukasz
My second question is if it's possible to rearange WS
and how to do
Post by £ukasz
it?. Till now i havent had enough time to think about
it but it wold
Post by £ukasz
be nice possibility
What do you mean by rearanging?
* If you want to switch order of tabs, then there is
function
   WMPlex.dec_index and WMPlex.inc_index
* If yoy want to add and move some splits, just do it
manually and save
  it to your session.
  If you want such workspace to be created
"dynamically", then you can
  isolate this workspace from your session
  file (saved_layout.lua) and use
ioncore.create_ws(scr, tmpl, layout)
  and ioncore.deflayout(name, tab).
  Note that I did not ever tried that. I just created
one workspace
  which satisfies all my needs. Namely I discared all
splits (to have
  one frame) on my laptop, then I attached new WTiling
into this frame
  and I split this WTiling. Thus my windows are nearly
fullscreen
  (if it is sibbling of the nested WTiling) or they
occupy smaller
  part, if they are descendants of the nested WTiling.
I can switch
  between them with my pen (I have tablet) or mouse.
This is especially
  good when the main work is browsing internet, as
browsing is
  traditionally mouse-oriented (some technologies from
hell, such
  as adobe flash requires use of mouse when browsing
internet).
thanks, WMPlex.dec_index WMPlex.inc_index works exactly i want to, but again in pwm i had to speific correct region and wmplex.

Lukas

Loading...