dwm-activemonitor-20230825-e81f17d.diff - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) 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?= <gutyina.gergo.2@gmail.com>
            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 : SchemeNorm]);
           19                  if (m->sel) {
           20 -                        drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
           21                          drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
           22                          if (m->sel->isfloating)
           23                                  drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
           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