dwm-statusmon-6.2.diff (1332B)
1 diff '--color=auto' -up dwm-6.2/config.def.h dwm-6.2.mod/config.def.h 2 --- dwm-6.2/config.def.h 2019-02-02 13:55:28.000000000 +0100 3 +++ dwm-6.2.mod/config.def.h 2022-01-03 20:26:11.471155370 +0100 4 @@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; 5 static const unsigned int snap = 32; /* snap pixel */ 6 static const int showbar = 1; /* 0 means no bar */ 7 static const int topbar = 1; /* 0 means bottom bar */ 8 +static const int statusmon = 0; /* monitor to draw status on */ 9 static const char *fonts[] = { "monospace:size=10" }; 10 static const char dmenufont[] = "monospace:size=10"; 11 static const char col_gray1[] = "#222222"; 12 diff '--color=auto' -up dwm-6.2/dwm.c dwm-6.2.mod/dwm.c 13 --- dwm-6.2/dwm.c 2019-02-02 13:55:28.000000000 +0100 14 +++ dwm-6.2.mod/dwm.c 2022-01-03 20:25:13.845842063 +0100 15 @@ -702,7 +702,7 @@ drawbar(Monitor *m) 16 Client *c; 17 18 /* draw status first so it can be overdrawn by tags later */ 19 - if (m == selmon) { /* status is only drawn on selected monitor */ 20 + if (m->num == statusmon) { /* status is only drawn on one monitor, configured by statusmon variable*/ 21 drw_setscheme(drw, scheme[SchemeNorm]); 22 sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ 23 drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);