Re: [dev] [dwm] auto switch to the app's tag
Thanks for the help Anselm! Your recommendation works perfect!
Kind regards.
On Wed, Dec 14, 2011 at 7:57 PM, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> On 13 December 2011 18:14, nxt7 <k7e5te3r_AT_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
>
>
Received on Thu Dec 15 2011 - 16:18:41 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 15 2011 - 16:24:03 CET