aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorgonzo <gonzo@toniatuh.com>2023-05-17 20:43:21 +0200
committergonzo <gonzo@toniatuh.com>2023-05-17 20:43:21 +0200
commit788731079849b41c6e0cb2c4baa2665aa3bc74c0 (patch)
treee2684234eac75062885da6e67fe24c26600e7ca2 /config.h
parentb206a544652e7f1c06172b4c059c057cf946d9ef (diff)
downloaddwm-788731079849b41c6e0cb2c4baa2665aa3bc74c0.tar.gz
cycle layouts
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.h b/config.h
index bc1c11f..d3e5175 100644
--- a/config.h
+++ b/config.h
@@ -59,6 +59,7 @@ static const Layout layouts[] = {
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
+ { NULL, NULL },
};
/* key definitions */
@@ -92,7 +93,9 @@ static const Key keys[] = {
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
+ //{ MODKEY, XK_Tab, view, {0} },
+ { MODKEY, XK_Tab, cyclelayout, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_Tab, cyclelayout, {.i = -1 } },
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, togglefullscr, {0} },