aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-25 16:21:52 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-25 16:21:52 +0200
commitc89cda27d36aaff8971905d067e4b89b6337259d (patch)
tree4bc52e701d4195a56290eebc4c133ca9d489fdef /config.def.h
parentup (diff)
downloaddwm-c89cda27d36aaff8971905d067e4b89b6337259d.tar.gz
dwm-c89cda27d36aaff8971905d067e4b89b6337259d.tar.bz2
dwm-c89cda27d36aaff8971905d067e4b89b6337259d.tar.xz
dwm-c89cda27d36aaff8971905d067e4b89b6337259d.tar.zst
dwm-c89cda27d36aaff8971905d067e4b89b6337259d.zip
stairs
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/config.def.h b/config.def.h
index 847cd05..d61d4e6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -8,6 +8,9 @@ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int user_bh = 22; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
static const int focusonwheel = 0;
+static const unsigned int stairpx = 20; /* depth of the stairs layout */
+static const int stairdirection = 0; /* 0: left-aligned, 1: right-aligned */
+static const int stairsamesize = 1; /* 1 means shrink all the staired windows to the same size */
static const char *fonts[] = { "UbuntuMono Nerd Font:size=14" };
static const char dmenufont[] = "monospace:size=11";
static const char col_gray1[] = "#222222";
@@ -64,11 +67,12 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
+ { "TTT", bstack },
+ { "===", bstackhoriz },
{ "|M|", centeredmaster },
{ ">M>", centeredfloatingmaster },
+ { "[S]", stairs },
{ "[M]", monocle },
- { "TTT", bstack },
- { "===", bstackhoriz },
{ "><>", NULL }, /* no layout function means floating behavior */
};
@@ -189,12 +193,13 @@ static Key keys[] = {
{ METAKEY, XK_Escape, view, {0} },
{ MODKEY, XK_q, killclient, {0} },
{ MODKEY, XK_s, setlayout, {.v = &layouts[0]} }, /* tile */
- { MODKEY, XK_c, setlayout, {.v = &layouts[1]} }, /* centeredmaster */
- { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, /* centeredfloatingmaster */
- { MODKEY, XK_m, setlayout, {.v = &layouts[3]} }, /* monocle */
- { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[4]} }, /* bottoastack */
- { MODKEY, XK_t, setlayout, {.v = &layouts[5]} }, /* bottomstackhoriz */
- { MODKEY, XK_n, setlayout, {.v = &layouts[6]} }, /* floating */
+ { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[1]} }, /* bottoastack */
+ { MODKEY, XK_t, setlayout, {.v = &layouts[2]} }, /* bottomstackhoriz */
+ { MODKEY, XK_c, setlayout, {.v = &layouts[3]} }, /* centeredmaster */
+ { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[4]} }, /* centeredfloatingmaster */
+ { MODKEY|ControlMask, XK_s, setlayout, {.v = &layouts[5]} }, /* stairs */
+ { MODKEY, XK_m, setlayout, {.v = &layouts[6]} }, /* monocle */
+ { MODKEY, XK_n, setlayout, {.v = &layouts[7]} }, /* floating */
{ MODKEY|ShiftMask, XK_space, setlayout, {0} },
{ MODKEY, XK_space, togglefloating, {0} },
{ MODKEY, XK_f, togglefullscr, {0} },