[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Mon, 21 Dec 2009 06:40:03 +0000 (UTC)

changeset: 420:54f51b7da350
user: Ray Kohler <ataraxia937_AT_gmail.com>
date: Mon Dec 21 01:39:42 2009 -0500
files: dwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff dwm.suckless.org/patches/urgentborder.md
description:
add urgentborder dwm patch


diff -r 69c3db68e46b -r 54f51b7da350 dwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff Mon Dec 21 01:39:42 2009 -0500
_AT_@ -0,0 +1,45 @@
+diff -r 7b02d596fa11 config.def.h
+--- a/config.def.h Mon Dec 21 01:16:59 2009 -0500
++++ b/config.def.h Mon Dec 21 01:18:51 2009 -0500
+_AT_@ -8,6 +8,7 @@
+ static const char selbordercolor[] = "#0066ff";
+ static const char selbgcolor[] = "#0066ff";
+ static const char selfgcolor[] = "#ffffff";
++static const char urgbordercolor[] = "#ff0000";
+ static const unsigned int borderpx = 1; /* border pixel of windows */
+ static const unsigned int snap = 32; /* snap pixel */
+ static const Bool showbar = True; /* False means no bar */
+diff -r 7b02d596fa11 dwm.c
+--- a/dwm.c Mon Dec 21 01:16:59 2009 -0500
++++ b/dwm.c Mon Dec 21 01:18:51 2009 -0500
+_AT_@ -97,6 +97,7 @@
+ int x, y, w, h;
+ unsigned long norm[ColLast];
+ unsigned long sel[ColLast];
++ unsigned long urg[ColLast];
+ Drawable drawable;
+ GC gc;
+ struct {
+_AT_@ -1504,6 +1505,9 @@
+ dc.sel[ColBorder] = getcolor(selbordercolor);
+ dc.sel[ColBG] = getcolor(selbgcolor);
+ dc.sel[ColFG] = getcolor(selfgcolor);
++ dc.urg[ColBorder] = getcolor(urgbordercolor);
++ dc.urg[ColBG] = getcolor(selbgcolor);
++ dc.urg[ColFG] = getcolor(selfgcolor);
+ dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen));
+ dc.gc = XCreateGC(dpy, root, 0, NULL);
+ XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
+_AT_@ -1904,8 +1908,11 @@
+ wmh->flags &= ~XUrgencyHint;
+ XSetWMHints(dpy, c->win, wmh);
+ }
+- else
++ else {
+ c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
++ if (c->isurgent)
++ XSetWindowBorder(dpy, c->win, dc.urg[ColBorder]);
++ }
+ XFree(wmh);
+ }
+ }
diff -r 69c3db68e46b -r 54f51b7da350 dwm.suckless.org/patches/urgentborder.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/urgentborder.md Mon Dec 21 01:39:42 2009 -0500
_AT_@ -0,0 +1,15 @@
+# CUSTOM URGENT BORDER
+
+## Description
+
+This patch makes borders of "urgent" windows a different color.
+By default it is bright red.
+Use config.h item "urgbordercolor" to change it.
+
+## Download
+
+ * [dwm-5.7.2-urgentborder.diff](dwm-5.7.2-urgentborder.diff) (1.6K) (20091221)
+
+## Author
+
+ * Ray Kohler - <ataraxia937 gmail com>

changeset: 421:043b8cc04f58
tag: tip
user: Ray Kohler <ataraxia937_AT_gmail.com>
date: Mon Dec 21 01:39:56 2009 -0500
files: dwm.suckless.org/patches/dwm-5.7.2-sizehints.diff dwm.suckless.org/patches/sizehints.md
description:
add sizehints dwm patch


diff -r 54f51b7da350 -r 043b8cc04f58 dwm.suckless.org/patches/dwm-5.7.2-sizehints.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.7.2-sizehints.diff Mon Dec 21 01:39:56 2009 -0500
_AT_@ -0,0 +1,24 @@
+diff -r 46109f7eeb14 dwm.c
+--- a/dwm.c Mon Dec 21 01:14:28 2009 -0500
++++ b/dwm.c Mon Dec 21 01:16:38 2009 -0500
+_AT_@ -1841,7 +1841,7 @@
+
+ if(!XGetWMNormalHints(dpy, c->win, &size, &msize))
+ /* size is uninitialized, ensure that size.flags aren't used */
+- size.flags = PSize;
++ size.flags = 0;
+ if(size.flags & PBaseSize) {
+ c->basew = size.base_width;
+ c->baseh = size.base_height;
+_AT_@ -1880,6 +1880,11 @@
+ }
+ else
+ c->maxa = c->mina = 0.0;
++ if(size.flags & PSize) {
++ c->basew = size.base_width;
++ c->baseh = size.base_height;
++ c->isfloating = True;
++ }
+ c->isfixed = (c->maxw && c->minw && c->maxh && c->minh
+ && c->maxw == c->minw && c->maxh == c->minh);
+ }
diff -r 54f51b7da350 -r 043b8cc04f58 dwm.suckless.org/patches/sizehints.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/sizehints.md Mon Dec 21 01:39:56 2009 -0500
_AT_@ -0,0 +1,19 @@
+# OBEY ALL SIZEHINTS
+
+## Description
+
+This patch makes dwm obey even "soft" sizehints for new clients.
+Any window that requests a specific initial size will be floated and set to that size.
+Unlike with "fixed size" windows, you are able to resize and/or unfloat these windows freely - only the initial state is affected.
+
+This patch is honestly of limited utility since there are many clients that will abuse it.
+
+There is no configuration for this patch.
+
+## Download
+
+ * [dwm-5.7.2-sizehints.diff](dwm-5.7.2-sizehints.diff) (695B) (20091221)
+
+## Author
+
+ * Ray Kohler - <ataraxia937 gmail com>
Received on Mon Dec 21 2009 - 07:40:03 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:05 CEST