URI: 
       dwm-defaulttag-6.0.diff - sites - public wiki contents of suckless.org
  HTML git clone git://git.suckless.org/sites
   DIR Log
   DIR Files
   DIR Refs
       ---
       dwm-defaulttag-6.0.diff (987B)
       ---
            1 diff --git a/config.def.h b/config.def.h
            2 index 77ff358..d66d225 100644
            3 --- a/config.def.h
            4 +++ b/config.def.h
            5 @@ -10,6 +10,7 @@ static const char selbgcolor[]      = "#005577";
            6  static const char selfgcolor[]      = "#eeeeee";
            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 Bool showbar           = True;     /* False means no bar */
           11  static const Bool topbar            = True;     /* False means bottom bar */
           12  
           13 diff --git a/dwm.c b/dwm.c
           14 index 1d78655..cbb9b59 100644
           15 --- a/dwm.c
           16 +++ b/dwm.c
           17 @@ -649,7 +649,7 @@ createmon(void) {
           18  
           19          if(!(m = (Monitor *)calloc(1, sizeof(Monitor))))
           20                  die("fatal: could not malloc() %u bytes\n", 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;