diff --git a/config.def.h b/config.def.h index a5c2aea..e99f5d2 100644 --- a/config.def.h +++ b/config.def.h @@ -41,7 +41,6 @@ static const int resizehints = 0; /* 1 means respect size hints in tiled resi static const int attachbelow = 0; /* 1 means attach after the currently active window */ #include "tcl.c" - #include "fibonacci.c" static const Layout layouts[] = { /* symbol arrange function */ @@ -100,7 +99,7 @@ static Key keys[] = { { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY|ShiftMask, XK_l, spawn, {.v = logout} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, + { MODKEY, XK_Tab, toggleattachbelow, {0} }, { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, diff --git a/dwm.c b/dwm.c index 8ff8005..77eeeee 100644 --- a/dwm.c +++ b/dwm.c @@ -148,6 +148,7 @@ static void arrange(Monitor *m); static void arrangemon(Monitor *m); static void attach(Client *c); static void attachBelow(Client *c); +static void toggleAttachBelow(); static void attachstack(Client *c); static void buttonpress(XEvent *e); static void checkotherwm(void); @@ -422,6 +423,11 @@ attachBelow(Client *c) } +void toggleAttachBelow() +{ + attachbelow = !attachbelow; +} + void attachstack(Client *c) {