sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6a4b835c4d61f7bffd7302396bd715eb326a5c93
parent 2a710c74e3a711214dfd4240645f0a24f56bb1a1
Author: Ray Kohler <ataraxia937@gmail.com>
Date:   Mon, 21 Dec 2009 01:39:42 -0500

add urgentborder dwm patch
Diffstat:
Adwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff | 45+++++++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/urgentborder.md | 15+++++++++++++++
2 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff b/dwm.suckless.org/patches/dwm-5.7.2-urgentborder.diff @@ -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 +@@ -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 +@@ -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 { +@@ -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); +@@ -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 --git a/dwm.suckless.org/patches/urgentborder.md b/dwm.suckless.org/patches/urgentborder.md @@ -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>