Home » Uncategorized » my dwm n columns patch

my dwm n columns patch

vi dwm.c

void
tile(Monitor *m) {
        unsigned int i, n;
        Client *c;

        for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
        if(n == 0)
                return;

        for(i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
                 resize(c, m->ww * i/n, m->wy, m->ww/n, m->wh, False);
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s