On Mon, Sep 25, 2017 at 11:09:01PM +0200 I heard the voice of
Rhialto, and lo! it spake thus:
> 
> I tried
> 
> function "occutest1" { f.toggleoccupation "One"  f.vanish }
> function "occutest5" { f.toggleoccupation "Five" f.vanish }
> 
> and that seemed to work.

Might want to use f.addtoworkspace in place of f.toggleoccupation
there to act more expectedly in edge cases.  e.g., consider the window
is currently in current WS, the one you're trying to 'add' it to, and
a third; the toggle would make it disappear from the one you're
wanting to shift it to, then the vanish would disappear it from here,
leaving it only in the workspace that wasn't involved in the action at
all!


> On Mon 25 Sep 2017 at 01:14:35 -0400, Steve Litt wrote:
> > By the way, is there a way to pass an argument to a user defined
> > function, or do I have to make a function for each workspace?
> 
> I don't think so, and I have wished for something like that as well.

That would take deeper changes, not the least since it means
f.function would now become our first function that requires *two*
arguments.


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to