monocle mode totally removed
This commit is contained in:
parent
ea0887f567
commit
72a53ed2cc
2 changed files with 2 additions and 19 deletions
5
config.h
5
config.h
|
@ -49,7 +49,6 @@ static const Layout layouts[] = {
|
||||||
/* symbol arrange function */
|
/* symbol arrange function */
|
||||||
{ "[]=", tile }, /* first entry is default */
|
{ "[]=", tile }, /* first entry is default */
|
||||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||||
{ "[M]", monocle },
|
|
||||||
{ "|M|", centeredmaster },
|
{ "|M|", centeredmaster },
|
||||||
{ ">M>", centeredfloatingmaster },
|
{ ">M>", centeredfloatingmaster },
|
||||||
{ "[@]", spiral },
|
{ "[@]", spiral },
|
||||||
|
@ -123,11 +122,11 @@ static Key keys[] = {
|
||||||
/* { MODKEY|ShiftMask, XK_t, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_t, spawn, SHCMD("") }, */
|
||||||
/* { MODKEY, XK_y, spawn, SHCMD("") }, */
|
/* { MODKEY, XK_y, spawn, SHCMD("") }, */
|
||||||
/* { MODKEY|ShiftMask, XK_y, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_y, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_u, setlayout, {.v = &layouts[3]} },
|
{ MODKEY, XK_u, setlayout, {.v = &layouts[2]} },
|
||||||
/* { MODKEY|ShiftMask, XK_u, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_u, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_i, incnmaster, {.i = -1 } },
|
{ MODKEY|ShiftMask, XK_i, incnmaster, {.i = -1 } },
|
||||||
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} },
|
{ MODKEY, XK_o, setlayout, {.v = &layouts[3]} },
|
||||||
/* { MODKEY|ShiftMask, XK_o, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_o, spawn, SHCMD("") }, */
|
||||||
{ MODKEY, XK_p, spawn, SHCMD("mpc toggle") },
|
{ MODKEY, XK_p, spawn, SHCMD("mpc toggle") },
|
||||||
{ MODKEY|ShiftMask, XK_p, spawn, SHCMD("mpc pause ; pauseallmpv") },
|
{ MODKEY|ShiftMask, XK_p, spawn, SHCMD("mpc pause ; pauseallmpv") },
|
||||||
|
|
16
dwm.c
16
dwm.c
|
@ -213,7 +213,6 @@ static void loadxrdb(void);
|
||||||
static void manage(Window w, XWindowAttributes *wa);
|
static void manage(Window w, XWindowAttributes *wa);
|
||||||
static void mappingnotify(XEvent *e);
|
static void mappingnotify(XEvent *e);
|
||||||
static void maprequest(XEvent *e);
|
static void maprequest(XEvent *e);
|
||||||
static void monocle(Monitor *m);
|
|
||||||
static void motionnotify(XEvent *e);
|
static void motionnotify(XEvent *e);
|
||||||
static void movemouse(const Arg *arg);
|
static void movemouse(const Arg *arg);
|
||||||
static Client *nexttiled(Client *c);
|
static Client *nexttiled(Client *c);
|
||||||
|
@ -1231,21 +1230,6 @@ maprequest(XEvent *e)
|
||||||
manage(ev->window, &wa);
|
manage(ev->window, &wa);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
monocle(Monitor *m)
|
|
||||||
{
|
|
||||||
unsigned int n = 0;
|
|
||||||
Client *c;
|
|
||||||
|
|
||||||
for (c = m->clients; c; c = c->next)
|
|
||||||
if (ISVISIBLE(c))
|
|
||||||
n++;
|
|
||||||
if (n > 0) /* override layout symbol */
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
motionnotify(XEvent *e)
|
motionnotify(XEvent *e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue