Login
Immutable PageDiscussionInfoAttachments
attachment:dwm-6.0-statuscolor.diff of clear/misc

MMA

Attachment 'dwm-6.0-statuscolor.diff'

Download

   1 diff -u a/config.def.h b/config.def.h
   2 --- a/config.def.h	2011-12-20 00:02:46.000000000 +0900
   3 +++ b/config.def.h	2012-04-22 08:48:17.103205735 +0900
   4 @@ -8,6 +8,8 @@
   5  static const char selbordercolor[]  = "#005577";
   6  static const char selbgcolor[]      = "#005577";
   7  static const char selfgcolor[]      = "#eeeeee";
   8 +static const char statusbgcolor[]   = "#005577";
   9 +static const char statusfgcolor[]   = "#eeeeee";
  10  static const unsigned int borderpx  = 1;        /* border pixel of windows */
  11  static const unsigned int snap      = 32;       /* snap pixel */
  12  static const Bool showbar           = True;     /* False means no bar */
  13 diff -u a/dwm.c b/dwm.c
  14 --- a/dwm.c	2011-12-20 00:02:46.000000000 +0900
  15 +++ b/dwm.c	2012-04-21 09:41:52.985899280 +0900
  16 @@ -101,6 +101,7 @@
  17  	int x, y, w, h;
  18  	unsigned long norm[ColLast];
  19  	unsigned long sel[ColLast];
  20 +	unsigned long status[ColLast];
  21  	Drawable drawable;
  22  	GC gc;
  23  	struct {
  24 @@ -747,7 +748,7 @@
  25  			dc.x = x;
  26  			dc.w = m->ww - x;
  27  		}
  28 -		drawtext(stext, dc.norm, False);
  29 +		drawtext(stext, dc.status, False);
  30  	}
  31  	else
  32  		dc.x = m->ww;
  33 @@ -1618,6 +1619,9 @@
  34  	dc.sel[ColBorder] = getcolor(selbordercolor);
  35  	dc.sel[ColBG] = getcolor(selbgcolor);
  36  	dc.sel[ColFG] = getcolor(selfgcolor);
  37 +	dc.status[ColBorder] = 0;
  38 +	dc.status[ColBG] = getcolor(statusbgcolor);
  39 +	dc.status[ColFG] = getcolor(statusfgcolor);
  40  	dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen));
  41  	dc.gc = XCreateGC(dpy, root, 0, NULL);
  42  	XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2019-12-24 16:36:52, 2.9 KB) [[attachment:dwm-6.0-moderatetile.diff]]
  • [get | view] (2019-12-24 16:36:52, 1.5 KB) [[attachment:dwm-6.0-rotate.diff]]
  • [get | view] (2019-12-24 16:36:52, 1.5 KB) [[attachment:dwm-6.0-statuscolor.diff]]
  • [get | view] (2019-12-24 16:36:52, 3.4 KB) [[attachment:now_implementing.png]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.