diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 08:41:59 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 08:41:59 -0500 |
| commit | 7dcc0ef3969f2bbfbee8846d0bddbd39ce197d93 (patch) | |
| tree | f4e4a6154c32e644b62d8379f69086b5927a8a19 /config.def.h | |
| parent | 593e3c3847a721afd3c7d88767037a7b13132a11 (diff) | |
| download | dwm-7dcc0ef3969f2bbfbee8846d0bddbd39ce197d93.tar.gz dwm-7dcc0ef3969f2bbfbee8846d0bddbd39ce197d93.tar.xz | |
Scaled center layout
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index aed3eb3..fa16868 100644 --- a/config.def.h +++ b/config.def.h @@ -33,6 +33,7 @@ static const Rule rules[] = { /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const float cfact = 0.5; /* factor of center area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ @@ -42,6 +43,7 @@ static const Layout layouts[] = { { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "[C]", layoutCenter }, }; /* key definitions */ @@ -77,6 +79,9 @@ static const Key keys[] = { { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_c, setlayout, {.v = &layouts[3]} }, + { MODKEY, XK_equal, setcfact, {.f = +0.05} }, + { MODKEY, XK_minus, setcfact, {.f = -0.05} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, |
