Re: [dwm] on-the-fly tags creation and deletion

From: Anselm R. Garbe <arg_AT_10kloc.org>
Date: Mon, 21 Aug 2006 09:23:59 +0200

On Sun, Aug 20, 2006 at 12:49:12AM +0200, Julian Romero wrote:
> Trying to add more dynamism to the "d" in dwm I added the possibility
> to add or removes tags while dwm is running.
>
> You need the attached patch (for release 0.9 and up) and a script like
> http://wiki.mad.mw/dwm/StartupScript to be able to communicate with
> dwm. Feel free to use lower delay time.
>
> Then, you can just add a new tag:
>
> echo "add tag newtag" > ~/.dwm/status
>
> or remove a existing one:
>
> echo "del tag oldtag" > ~/.dwm/status
>
> With the new tag approach I think this features are quite handy.
>
> regards,
> --
> Julián
> PS: it's not finished, I need to improve it to handle clients tagged
> only with a tag being removed

> diff -r 81ebf60c6c8b config.default.h
> --- a/config.default.h Tue Aug 15 10:45:14 2006 +0200
> +++ b/config.default.h Sun Aug 20 00:33:36 2006 +0200
> @@ -4,7 +4,7 @@
> */
>
> #define TAGS \
> -const char *tags[] = { "0", "1", "2", "3", "4", NULL };
> +char *tags[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };

I think this tag-interface is quite an ugly hack. What happens
if a user creates 15 new tags or more during runtime?

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Mon Aug 21 2006 - 09:23:59 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:15 UTC