dwm-activemonitor-20230825-e81f17d.diff - sites - public wiki contents of suckl… | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
dwm-activemonitor-20230825-e81f17d.diff (956B) | |
--- | |
1 From 5e8c07dbbf3a2717a1fc852bccc958d789b80540 Mon Sep 17 00:00:00 2001 | |
2 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= <[email protected]> | |
3 Date: Thu, 24 Aug 2023 15:39:20 +0200 | |
4 Subject: [PATCH] Always show the active monitor with bar color | |
5 | |
6 --- | |
7 dwm.c | 3 +-- | |
8 1 file changed, 1 insertion(+), 2 deletions(-) | |
9 | |
10 diff --git a/dwm.c b/dwm.c | |
11 index f1d86b2..7cd6d4c 100644 | |
12 --- a/dwm.c | |
13 +++ b/dwm.c | |
14 @@ -735,13 +735,12 @@ drawbar(Monitor *m) | |
15 x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); | |
16 | |
17 if ((w = m->ww - tw - x) > bh) { | |
18 + drw_setscheme(drw, scheme[m == selmon ? SchemeSel : Sch… | |
19 if (m->sel) { | |
20 - drw_setscheme(drw, scheme[m == selmon ? SchemeS… | |
21 drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->n… | |
22 if (m->sel->isfloating) | |
23 drw_rect(drw, x + boxs, boxs, boxw, box… | |
24 } else { | |
25 - drw_setscheme(drw, scheme[SchemeNorm]); | |
26 drw_rect(drw, x, 0, w, bh, 1, 1); | |
27 } | |
28 } | |
29 -- | |
30 2.41.0 | |
31 |