Re: [dev] [dwm] number of tag limited?

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Fri, 6 Aug 2010 14:14:51 +0100

Hey,

On 6 August 2010 06:27, thuban <thuban_AT_singularity.fr> 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
Received on Fri Aug 06 2010 - 15:14:51 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 06 2010 - 15:24:02 CEST