Re: [dev] [dwm] auto switch to the app's tag

From: Anselm R Garbe <>
Date: Wed, 14 Dec 2011 17:57:05 +0100

On 13 December 2011 18:14, nxt7 <> 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 };

at the end of manage().

Received on Wed Dec 14 2011 - 17:57:05 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 14 2011 - 18:00:06 CET