On 10/8/08, Tom Alsberg <[EMAIL PROTECTED]> wrote:
> Hello, people.
>
>  A little question - I have long not touched my FVWM configuration or kept
> myself updated with development/list, and now only done some basic research
> by looking at parts that seemed relevant in the man page and searching the
> mailing list, so I may be missing the answer somewhere:
>
>  I want to add a function that arranges a set of windows I pick in some
> predetermined positions.  For one window I can just put a function with
> something like "+ I Pick Move 42p 365p" in it, which when executed will let
> me choose a window to place at that position.
>  However by nature of the way Pick works (checking for a window context
> first), if I put more than one such line in a function, I only get to pick
> one window and all Move commands will operate on it.  How can I make the
> function "forget" the window context after picking so that another window
> can be picked, or somehow combine several such functions in one?
>
>   Suggestions appreciated,
>   -- Tom
>
>  --
>   Tom Alsberg - certified insane, complete illiterate.
>         Homepage: http://www.cs.huji.ac.il/~alsbergt/
>   * An idea is not responsible for the people who believe in it.
>
>

I think this is what you want.  I find it very useful.

# this will let you keep picking windows until you click on root or hit ESC
DestroyFunc PickAgain
AddToFunc PickAgain
+ I Pick $*
+ I PipeRead "test $[func.context] = r && echo 'PickAgain $*'"


-- 
Thanks,

Jonathan Kotta

Hofstadter's Law:
    It always takes longer than you expect, even
    when you take into account Hofstadter's Law.

Reply via email to