From 5fdba75bfabd45cb1bf38af86d3cec641d488093 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 14 Apr 2020 16:06:38 +0200 Subject: Added surf configurations --- .repos/dwm/horizgrid.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .repos/dwm/horizgrid.c (limited to '.repos/dwm/horizgrid.c') diff --git a/.repos/dwm/horizgrid.c b/.repos/dwm/horizgrid.c deleted file mode 100644 index 51ce0f8..0000000 --- a/.repos/dwm/horizgrid.c +++ /dev/null @@ -1,32 +0,0 @@ -void -horizgrid(Monitor *m) { - Client *c; - unsigned int n, i; - int w = 0; - int ntop, nbottom = 0; - - /* Count windows */ - for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - - if(n == 0) - return; - else if(n == 1) { /* Just fill the whole screen */ - c = nexttiled(m->clients); - resize(c, m->wx, m->wy, m->ww - (2*c->bw), m->wh - (2*c->bw), False); - } else if(n == 2) { /* Split vertically */ - w = m->ww / 2; - c = nexttiled(m->clients); - resize(c, m->wx, m->wy, w - (2*c->bw), m->wh - (2*c->bw), False); - c = nexttiled(c->next); - resize(c, m->wx + w, m->wy, w - (2*c->bw), m->wh - (2*c->bw), False); - } else { - ntop = n / 2; - nbottom = n - ntop; - for(i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) { - if(i < ntop) - resize(c, m->wx + i * m->ww / ntop, m->wy, m->ww / ntop - (2*c->bw), m->wh / 2 - (2*c->bw), False); - else - resize(c, m->wx + (i - ntop) * m->ww / nbottom, m->wy + m->wh / 2, m->ww / nbottom - (2*c->bw), m->wh / 2 - (2*c->bw), False); - } - } -} -- cgit v1.2.3