[wiki] [sites] Port Urgendtborders to 6.2 || Dirk Leichsenring

From: <git_AT_suckless.org>
Date: Sun, 21 Jun 2020 20:03:49 +0200

commit 6053fcc5d5924b14e553424a8d1f2766e157ba98
Author: Dirk Leichsenring <dlei_AT_reddott.de>
Date: Sun Jun 21 20:03:19 2020 +0200

    Port Urgendtborders to 6.2

diff --git a/dwm.suckless.org/patches/urgentborder/dwm-6.2-urg-border.diff b/dwm.suckless.org/patches/urgentborder/dwm-6.2-urg-border.diff
new file mode 100644
index 00000000..53f4d86c
--- /dev/null
+++ b/dwm.suckless.org/patches/urgentborder/dwm-6.2-urg-border.diff
_AT_@ -0,0 +1,56 @@
+From f20e5593e154e7e46c3f7100bd1378c7844b5ec8 Mon Sep 17 00:00:00 2001
+From: Dirk Leichsenring <dlei_AT_reddott.de>
+Date: Sun, 21 Jun 2020 14:00:40 +0200
+Subject: [PATCH] Make the borders of urgent windows a different color - for dwm 6.2
+
+---
+ config.def.h | 2 ++
+ dwm.c | 7 +++++--
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..1cb4492 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -12,10 +12,12 @@ static const char col_gray2[] = "#444444";
+ static const char col_gray3[] = "#bbbbbb";
+ static const char col_gray4[] = "#eeeeee";
+ static const char col_cyan[] = "#005577";
++static const char col_urgborder[] = "#ff0000";
+ static const char *colors[][3] = {
+ /* fg bg border */
+ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
+ [SchemeSel] = { col_gray4, col_cyan, col_cyan },
++ [SchemeUrg] = { col_gray4, col_cyan, col_urgborder },
+ };
+
+ /* tagging */
+diff --git a/dwm.c b/dwm.c
+index 4465af1..fda4013 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -59,7 +59,7 @@
+
+ /* enums */
+ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
+-enum { SchemeNorm, SchemeSel }; /* color schemes */
++enum { SchemeNorm, SchemeSel, SchemeUrg }; /* color schemes */
+ enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
+ NetWMFullscreen, NetActiveWindow, NetWMWindowType,
+ NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
+_AT_@ -2022,8 +2022,11 @@ updatewmhints(Client *c)
+ if (c == selmon->sel && wmh->flags & XUrgencyHint) {
+ wmh->flags &= ~XUrgencyHint;
+ XSetWMHints(dpy, c->win, wmh);
+- } else
++ } else {
+ c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
++ if (c->isurgent)
++ XSetWindowBorder(dpy, c->win, scheme[SchemeUrg][ColBorder].pixel);
++ }
+ if (wmh->flags & InputHint)
+ c->neverfocus = !wmh->input;
+ else
+--
+2.27.0
+
diff --git a/dwm.suckless.org/patches/urgentborder/index.md b/dwm.suckless.org/patches/urgentborder/index.md
index 5dbe0aea..4e5eaaf1 100644
--- a/dwm.suckless.org/patches/urgentborder/index.md
+++ b/dwm.suckless.org/patches/urgentborder/index.md
_AT_@ -14,8 +14,10 @@ Download
 --------
 * [dwm-6.1-urg-border.diff](dwm-6.1-urg-border.diff) (2.2K) (20150307)
 * [dwm-6.1-min-border.diff](dwm-6.1-min-border.diff) (360) (20190924)
+* [dwm-6.2-urg-border.diff](dwm-6.2-urg-border.diff) (1.9K) (20200621)
 
 Author
 ------
 * Alexander Huemer - alexander dot huemer dot xx dot vu (Based on former work by Ray Kohler - ataraxia937 gmail com)
 * Ivan Tham - <pickfire_AT_riseup.net> (min port)
+* Dirk Leichsenring - <dlei_AT_reddott.de> (port for 6.2)
Received on Sun Jun 21 2020 - 20:03:49 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 21 2020 - 20:12:52 CEST