On Thu, Nov 17, 2005 at 06:16:52PM +0000, Tuomo Valkonen wrote:
>  If, however, all you want to do is create a workspace with a fixed
> layout that you have created interactively but do not expect to be
> changing the used layout(s) often, you can copy-paste and pass any table
> from the saved_layout file with the 'type' field set to "WIonWS" directly
> to WMPlex.attach_new (applied on some screen, although the same function
> works for attaching nested workspaces or anything to frames too).

Thanks for the suggestion!  I've now got this working.  I'd now like to
make the new workspace (which I've also populated with a few terminals,
etc) have a new current directory.

I'd like something like:

function roundyws.new_ws(scr)
  n = n + 1
  local ws = scr:attach_new(foo(n))

  dir = mod_query.query_directory(scr, "What directory? ")
  ioncore.chdir_for(ws, dir)
end

The catch is that there is no mod_query.query_directory, and I can't see
how to construct such a beast.  The only functions I can see are ones that
seem either too high-level or too low-level.  I'm sure I'm just missing
something.
-- 
David Roundy

Reply via email to