Hey,

On 6 August 2010 06:27, thuban <[email protected]> wrote:
> But what do you think to create the tag justs when you move in? I'm
> just thinking to the same comportement of wmii. Especially, I would
> like to be able to rename tags, and create them as I want (and
> automatically remove them when they are no more used ).
> Sure, it must be really easy to do it with 9p.

I think this is simply outside dwm's scope. dwm's configuration is, as
you say, "static", and this makes it internally a lot simpler. If you
want this functionality you may want to use something like wmii
instead. You could set a keybind for dwm to exec itself so you can
"reread" config.h, but this would lose the current tagging. I am
absolutely fine with tags numbered 1 to 9, and don't want the code
mudded up with dynamic tag naming such-and-such.

As for "not showing unoccupied tags", here's a short patch for tip:

diff -r 0d86faf4b05c dwm.c
--- a/dwm.c     Sun Jul 25 09:58:25 2010 +0100
+++ b/dwm.c     Fri Aug 06 14:11:09 2010 +0100
@@ -695,6 +695,8 @@
        }
        dc.x = 0;
        for(i = 0; i < LENGTH(tags); i++) {
+               if(!(occ & 1 << i || m->tagset[m->seltags] & 1 << i))
+                       continue;
                dc.w = TEXTW(tags[i]);
                col = m->tagset[m->seltags] & 1 << i ? dc.sel : dc.norm;
                drawtext(tags[i], col, urg & 1 << i);

But I prefer the standard behaviour.

Thanks,
cls

Reply via email to