Thanks for the help Anselm!  Your recommendation works perfect!

Kind regards.


On Wed, Dec 14, 2011 at 7:57 PM, Anselm R Garbe <garb...@gmail.com> wrote:

> On 13 December 2011 18:14, nxt7 <k7e5t...@gmail.com> wrote:
> > Is it possible to make dwm to switch to the tag where application is
> started
> > according to the "Rules" section of config file? viewontag patch works
> only
> > with already started applications and does not suit for applications
> started
> > through command line or file type associations from file managers. On
> > this[1] forum I was told that such functionality is already present in
> dwm
> > but I tried both vanilla dwm 5.8 and dwm-hg (without any patches) and
> found
> > nothing similar to desired behavior. Can somebody explain the situation?
>
> Just add a flag (didapplyrules) or something that you set in the inner
> part of applyrules() and then something like:
>
> if(didapplyrules) {
>    Arg a = { .ui = c->tags };
>    view(&a);
> }
>
> at the end of manage().
>
> HTH,
> Anselm
>
>

Reply via email to