sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 6053fcc5d5924b14e553424a8d1f2766e157ba98
parent a223578fd404a653f88664cf454d04bc89deeed5
Author: Dirk Leichsenring <dlei@reddott.de>
Date:   Sun, 21 Jun 2020 20:03:19 +0200

Port Urgendtborders to 6.2

Diffstat:
Adwm.suckless.org/patches/urgentborder/dwm-6.2-urg-border.diff | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/urgentborder/index.md | 2++
2 files changed, 58 insertions(+), 0 deletions(-)

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 @@ -0,0 +1,56 @@ +From f20e5593e154e7e46c3f7100bd1378c7844b5ec8 Mon Sep 17 00:00:00 2001 +From: Dirk Leichsenring <dlei@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 +@@ -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 +@@ -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,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 @@ -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@riseup.net> (min port) +* Dirk Leichsenring - <dlei@reddott.de> (port for 6.2)