diff --git a/config.def.h b/config.def.h index 723c3b6..9d75215 100644 --- a/config.def.h +++ b/config.def.h @@ -55,9 +55,9 @@ static Sp scratchpads[] = { /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -static const char ptagf[] = "[%s %s]"; /* format of a tag label */ -static const char etagf[] = "[%s]"; /* format of an empty tag */ -static const int lcaselbl = 0; /* 1 means make tag label lowercase */ +static const char ptagf[] = "%s-%s"; /* format of a tag label */ +static const char etagf[] = "%s"; /* format of an empty tag */ +static const int lcaselbl = 1; /* 1 means make tag label lowercase */ static const Rule rules[] = { /* class instance title tags mask isfloating isterminal noswallow monitor */ { "St", NULL, NULL, 0, 0, 1, 0, -1 }, @@ -81,6 +81,7 @@ static const Layout layouts[] = { /* symbol arrange function */ { "[]=", tile }, /* first entry is default */ { "[M]", monocle }, + { "><>", NULL }, }; /* key definitions */ @@ -141,6 +142,7 @@ static const Key keys[] = { { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, diff --git a/dwm.c b/dwm.c index a0bf054..e2b1dcd 100644 --- a/dwm.c +++ b/dwm.c @@ -1301,7 +1301,8 @@ monocle(Monitor *m) snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) if (selmon->pertag->drawwithgaps[selmon->pertag->curtag]) - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); + resize(c, m->wx + gappx[0], m->wy + gappx[0], m->ww - 2 * c->bw - gappx[0] * 2, m->wh - 2 * c->bw - gappx[0] * 2, 0); + // resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); else resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False); }