diff --git a/config.def.h b/config.def.h index 9efa774..d631b7d 100644 --- a/config.def.h +++ b/config.def.h @@ -3,6 +3,7 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ +static const unsigned int defaulttag= 2; /* default tag on startup */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "monospace:size=10" }; diff --git a/dwm.c b/dwm.c index 67c6b2b..b8a480c 100644 --- a/dwm.c +++ b/dwm.c @@ -636,7 +636,7 @@ createmon(void) Monitor *m; m = ecalloc(1, sizeof(Monitor)); - m->tagset[0] = m->tagset[1] = 1; + m->tagset[0] = m->tagset[1] = defaulttag; m->mfact = mfact; m->nmaster = nmaster; m->showbar = showbar;