Introduction
Introduction Statistics Contact Development Disclaimer Help
dwm-6.2-urg-border.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
dwm-6.2-urg-border.diff (1913B)
---
1 From f20e5593e154e7e46c3f7100bd1378c7844b5ec8 Mon Sep 17 00:00:00 2001
2 From: Dirk Leichsenring <[email protected]>
3 Date: Sun, 21 Jun 2020 14:00:40 +0200
4 Subject: [PATCH] Make the borders of urgent windows a different color - …
5
6 ---
7 config.def.h | 2 ++
8 dwm.c | 7 +++++--
9 2 files changed, 7 insertions(+), 2 deletions(-)
10
11 diff --git a/config.def.h b/config.def.h
12 index 1c0b587..1cb4492 100644
13 --- a/config.def.h
14 +++ b/config.def.h
15 @@ -12,10 +12,12 @@ static const char col_gray2[] = "#444444";
16 static const char col_gray3[] = "#bbbbbb";
17 static const char col_gray4[] = "#eeeeee";
18 static const char col_cyan[] = "#005577";
19 +static const char col_urgborder[] = "#ff0000";
20 static const char *colors[][3] = {
21 /* fg bg border */
22 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
23 [SchemeSel] = { col_gray4, col_cyan, col_cyan },
24 + [SchemeUrg] = { col_gray4, col_cyan, col_urgborder },
25 };
26
27 /* tagging */
28 diff --git a/dwm.c b/dwm.c
29 index 4465af1..fda4013 100644
30 --- a/dwm.c
31 +++ b/dwm.c
32 @@ -59,7 +59,7 @@
33
34 /* enums */
35 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
36 -enum { SchemeNorm, SchemeSel }; /* color schemes */
37 +enum { SchemeNorm, SchemeSel, SchemeUrg }; /* color schemes */
38 enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
39 NetWMFullscreen, NetActiveWindow, NetWMWindowType,
40 NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
41 @@ -2022,8 +2022,11 @@ updatewmhints(Client *c)
42 if (c == selmon->sel && wmh->flags & XUrgencyHint) {
43 wmh->flags &= ~XUrgencyHint;
44 XSetWMHints(dpy, c->win, wmh);
45 - } else
46 + } else {
47 c->isurgent = (wmh->flags & XUrgencyHint) ? 1 :…
48 + if (c->isurgent)
49 + XSetWindowBorder(dpy, c->win, scheme[Sc…
50 + }
51 if (wmh->flags & InputHint)
52 c->neverfocus = !wmh->input;
53 else
54 --
55 2.27.0
56
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.