mirror of
https://github.com/tiyn/dwm.git
synced 2025-04-18 23:37:45 +02:00
changed layout icons
This commit is contained in:
parent
05e733d26e
commit
815a70b24f
13
config.def.h
13
config.def.h
@ -52,11 +52,11 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi
|
||||
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "M", monocle },
|
||||
{ "T", tile }, /* first entry is default */
|
||||
{ "D", deck },
|
||||
{ "B", bstack },
|
||||
{ "=", bstackhoriz },
|
||||
{ "M", monocle },
|
||||
{ "T", tile }, /* first entry is default */
|
||||
{ "D", deck },
|
||||
{ "B", bstack },
|
||||
{ "B", bstackhoriz },
|
||||
{ "F", NULL }, /* no layout function means floating behavior */
|
||||
};
|
||||
|
||||
@ -120,8 +120,7 @@ static Key keys[] = {
|
||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||
static Button buttons[] = {
|
||||
/* click event mask button function argument */
|
||||
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||
{ ClkLtSymbol, 0, Button1, setlayout, {.v = 0 } },
|
||||
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
||||
{ ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} },
|
||||
{ ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} },
|
||||
|
13
config.h
13
config.h
@ -52,11 +52,11 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi
|
||||
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "M", monocle },
|
||||
{ "T", tile }, /* first entry is default */
|
||||
{ "D", deck },
|
||||
{ "B", bstack },
|
||||
{ "=", bstackhoriz },
|
||||
{ "M", monocle },
|
||||
{ "T", tile }, /* first entry is default */
|
||||
{ "D", deck },
|
||||
{ "B", bstack },
|
||||
{ "B", bstackhoriz },
|
||||
{ "F", NULL }, /* no layout function means floating behavior */
|
||||
};
|
||||
|
||||
@ -120,8 +120,7 @@ static Key keys[] = {
|
||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||
static Button buttons[] = {
|
||||
/* click event mask button function argument */
|
||||
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||
{ ClkLtSymbol, 0, Button1, setlayout, {.v = 0 } },
|
||||
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
||||
{ ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} },
|
||||
{ ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} },
|
||||
|
4
dwm.c
4
dwm.c
@ -835,7 +835,7 @@ deck(Monitor *m) {
|
||||
|
||||
if(n > m->nmaster) {
|
||||
mw = m->nmaster ? m->ww * m->mfact : 0;
|
||||
snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d", n - m->nmaster);
|
||||
snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d", n - m->nmaster);
|
||||
}
|
||||
else
|
||||
mw = m->ww;
|
||||
@ -1464,7 +1464,7 @@ monocle(Monitor *m)
|
||||
if (ISVISIBLE(c))
|
||||
n++;
|
||||
if (n > 0) /* override layout symbol */
|
||||
snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d", n);
|
||||
snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d", n);
|
||||
for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
|
||||
resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user