daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Apr 8th, 2012 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- dwm.c.orig  2012-04-07 18:02:03.507642534 +0200
  2. +++ dwm.c.patched       2012-04-07 18:01:21.307643506 +0200
  3. @@ -765,13 +765,14 @@
  4.                         urg |= c->tags;
  5.         }
  6.         dc.x = 0;
  7. +       dc.w = m->ww;
  8. +       drawborder(dc.colors[0]);
  9.         for(i = 0; i < LENGTH(tags); i++) {
  10.                 dc.w = TEXTW(tags[i].name);
  11. -        col = dc.colors[ (m->tagset[m->seltags] & 1 << i) ?
  12. -        1 : (urg & 1 << i ? 2:0) ];
  13. -        drawtext(tags[i].name, col, True);
  14. -               drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
  15. -                          occ & 1 << i, col);
  16. +        col = m->tagset[m->seltags] & 1 << i ? dc.colors[1] : dc.colors[0];
  17. +        ltcol = occ & 1 << i || m->tagset[m->seltags] & 1 << i ? dc.colors[0] : dc.colors[2];
  18. +                drawtext(tags[i].name, ltcol, urg & 1 << i);
  19. +                drawborder(col);
  20.                 dc.x += dc.w;
  21.         }
  22.         blw = TEXTW(m->ltsymbol);
  23. @@ -819,6 +820,16 @@
  24.  }
  25.  
  26.  void
  27. +drawborder(unsigned long col[ColLast]){
  28. +        XGCValues gcv;
  29. +        XRectangle r = {dc.x, dc.y, dc.w, 1 };
  30. +        
  31. +        gcv.foreground = col[ColBorder];
  32. +        XChangeGC(dpy, dc.gc, GCForeground, &gcv);
  33. +        XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
  34. +}
  35. +
  36. +void
  37.  drawbars(void) {
  38.         Monitor *m;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top