about summary refs log tree commit diff
path: root/patches/dwm-urgentborder-6.2.diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-06 09:39:15 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-06 09:39:15 +0200
commita314ffca1d3307d5ddcb02bce0c235307e417267 (patch)
treec7722c6cf1a96f8145e61973656af54607057302 /patches/dwm-urgentborder-6.2.diff
parentChanged button functionality clicking on layout symbol so that it cycles trough (diff)
downloaddwm-a314ffca1d3307d5ddcb02bce0c235307e417267.tar.gz
dwm-a314ffca1d3307d5ddcb02bce0c235307e417267.tar.bz2
dwm-a314ffca1d3307d5ddcb02bce0c235307e417267.zip
Added urgentborder patch
Diffstat (limited to '')
-rw-r--r--patches/dwm-urgentborder-6.2.diff57
1 files changed, 57 insertions, 0 deletions
diff --git a/patches/dwm-urgentborder-6.2.diff b/patches/dwm-urgentborder-6.2.diff
new file mode 100644
index 0000000..f5cd981
--- /dev/null
+++ b/patches/dwm-urgentborder-6.2.diff
@@ -0,0 +1,57 @@
+From b70614f535764227245fb19d2f7f0e1174911175 Mon Sep 17 00:00:00 2001
+From: Larry <fake_larry@protonmail.com>
+Date: Mon, 5 Aug 2019 21:32:48 +0000
+Subject: [PATCH] Update urgentborder to 6.2
+
+Description from the original author:
+
+This patch makes borders of "urgent" windows a different color. By
+default it is bright red. Use config.h item "urgbordercolor" to change
+it.
+
+Author:
+Alexander Huemer - alexander dot huemer dot xx dot vu (Based on former
+work by Ray Kohler - ataraxia937 gmail com)
+---
+ config.def.h | 1 +
+ dwm.c        | 6 +++---
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..6832fec 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -16,6 +16,7 @@ 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,  "#ff0000" },
+ };
+ 
+ /* tagging */
+diff --git a/dwm.c b/dwm.c
+index 4465af1..49ee757 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -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 */
+@@ -2022,8 +2022,8 @@ updatewmhints(Client *c)
+ 		if (c == selmon->sel && wmh->flags & XUrgencyHint) {
+ 			wmh->flags &= ~XUrgencyHint;
+ 			XSetWMHints(dpy, c->win, wmh);
+-		} else
+-			c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
++		} else if ((c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0))
++			XSetWindowBorder(dpy, c->win, scheme[SchemeUrg][ColBorder].pixel);
+ 		if (wmh->flags & InputHint)
+ 			c->neverfocus = !wmh->input;
+ 		else
+-- 
+2.21.0