Re: [dwm] Help with the tags mask syntax

From: Giorgio Lando <patroclo7_AT_gmail.com>
Date: Mon, 11 Aug 2008 01:21:54 +0200

On Sun 10/08/08, 21:16, Filippo Erik Negroni wrote:
> The tag mask is exactly that, a mask: it is not the number of the tag
> to use, but a mask that modifies the bits in the tag number.
> The tag mask number in config.h is therefore a 'bit-mask': if you use
> decimal '4' as the tag mask, the 'bit-mask' becomes bits
> 0-0-0-0-0-1-0-0, which when applied, indicates we want the third tag
> (the 1 in the third bit from the right) to be selected, hence tag '3'.
> I will try and post examples in the 'customisation' link on the wiki
> tomorrow, for the general public.

Thanks for the nice explanation. Then, if I get it, 6 as a tag mask stays for
0-0-0-0-0-0-1-1-0 and indicates that we want the second and the third
tag, while 8 stays for 0-0-0-0-0-1-0-0-0 and indicates that we want the
fourth one. Great, I also understand the great felxibility of this
system.

I still do not understand how this relates to tag masks like 1 << 8 - 1,
or ~0, which I have seen in some config.h, but I will look to your examples in
the wiki and will probably get it.
Giorgio
Received on Sun Aug 10 2008 - 23:21:54 UTC

This archive was generated by hypermail 2.2.0 : Sun Aug 10 2008 - 23:24:04 UTC