Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
371 B

  1. void
  2. monocle(Monitor *m)
  3. {
  4. unsigned int n;
  5. int oh, ov, ih, iv;
  6. Client *c;
  7. getgaps(m, &oh, &ov, &ih, &iv, &n);
  8. if (n > 0) /* override layout symbol */
  9. snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
  10. for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
  11. resize(c, m->wx + ov, m->wy + oh, m->ww - 2 * c->bw - 2 * ov, m->wh - 2 * c->bw - 2 * oh, 0);
  12. }