dwm-defaulttag-6.2.diff (889B)
1 diff --git a/config.def.h b/config.def.h 2 index 9efa774..d631b7d 100644 3 --- a/config.def.h 4 +++ b/config.def.h 5 @@ -3,6 +3,7 @@ 6 /* appearance */ 7 static const unsigned int borderpx = 1; /* border pixel of windows */ 8 static const unsigned int snap = 32; /* snap pixel */ 9 +static const unsigned int defaulttag= 2; /* default tag on startup */ 10 static const int showbar = 1; /* 0 means no bar */ 11 static const int topbar = 1; /* 0 means bottom bar */ 12 static const char *fonts[] = { "monospace:size=10" }; 13 diff --git a/dwm.c b/dwm.c 14 index 67c6b2b..b8a480c 100644 15 --- a/dwm.c 16 +++ b/dwm.c 17 @@ -636,7 +636,7 @@ createmon(void) 18 Monitor *m; 19 20 m = ecalloc(1, sizeof(Monitor)); 21 - m->tagset[0] = m->tagset[1] = 1; 22 + m->tagset[0] = m->tagset[1] = defaulttag; 23 m->mfact = mfact; 24 m->nmaster = nmaster; 25 m->showbar = showbar;