[wiki] [sites] [dwm][patch][activemonitor] Add patch || Gutyina Gergő

From: <git_AT_suckless.org>
Date: Fri, 25 Aug 2023 01:05:18 +0200

commit 790267abb574988510026ad404753752e10c8145
Author: Gutyina Gergő <gutyina.gergo.2_AT_gmail.com>
Date: Fri Aug 25 01:04:32 2023 +0200

    [dwm][patch][activemonitor] Add patch

diff --git a/dwm.suckless.org/patches/activemonitor/dwm-activemonitor-20230825-e81f17d.diff b/dwm.suckless.org/patches/activemonitor/dwm-activemonitor-20230825-e81f17d.diff
new file mode 100644
index 00000000..e6cc3810
--- /dev/null
+++ b/dwm.suckless.org/patches/activemonitor/dwm-activemonitor-20230825-e81f17d.diff
_AT_@ -0,0 +1,31 @@
+From 5e8c07dbbf3a2717a1fc852bccc958d789b80540 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= <gutyina.gergo.2_AT_gmail.com>
+Date: Thu, 24 Aug 2023 15:39:20 +0200
+Subject: [PATCH] Always show the active monitor with bar color
+
+---
+ dwm.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index f1d86b2..7cd6d4c 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -735,13 +735,12 @@ drawbar(Monitor *m)
+ x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
+
+ if ((w = m->ww - tw - x) > bh) {
++ drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
+ if (m->sel) {
+- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
+ drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
+ if (m->sel->isfloating)
+ drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
+ } else {
+- drw_setscheme(drw, scheme[SchemeNorm]);
+ drw_rect(drw, x, 0, w, bh, 1, 1);
+ }
+ }
+--
+2.41.0
+
diff --git a/dwm.suckless.org/patches/activemonitor/index.md b/dwm.suckless.org/patches/activemonitor/index.md
new file mode 100644
index 00000000..9d7fdf07
--- /dev/null
+++ b/dwm.suckless.org/patches/activemonitor/index.md
_AT_@ -0,0 +1,15 @@
+activemonitor
+=============
+
+Description
+-----------
+By default you only see which monitor is active, when there is at least one client on it.
+This patch shows the focused monitor, even if there are no clients on it.
+
+Download
+--------
+* [dwm-activemonitor-20230825-e81f17d.diff](dwm-activemonitor-20230825-e81f17d.diff)
+
+Authors
+-------
+* Gergő Gutyina - <gutyina.gergo.2_AT_gmail.com>
Received on Fri Aug 25 2023 - 01:05:18 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 25 2023 - 01:13:10 CEST