Re: [dwm] Assign specific tag to a console based program?

From: Michael Muster <a-chopper_AT_gmx.de>
Date: Sun, 2 Dec 2007 10:21:05 +0100

On Sat, Dec 01, 2007 at 11:15:38PM -0800, Ning Bao wrote:
> Hi!
>
> Is there anyway that I can do something in config.h so that can achieve the
> following?
>
> Recognize a console based program, such as "vim" or "emacs" and assign a
> specific tag (for an example, "editor") for these programs?
>
> The window title cannot differentiate console based programs, but how can I
> do this?
>
> Many thanks!

Hi,
I have done something similar:
In my .xinitrc i have:

uxterm -T mutt -e mutt &
uxterm -T calcurse -e calcurse &
uxterm -T cmus -e cmus &

and in config.h you
can "sort" the program to the tag you want:

[...]
{ "xterm:*mutt", "E-Mail", False },
{ "xterm:*cmus", "Musik", False },
{ "xterm:*calcurse", "Kalender", False },
[...]

So everytime you start for example mutt, it is started on tag "E-Mail".

regards,
Michael
Received on Sun Dec 02 2007 - 10:20:32 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:08:34 UTC