summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-07-16 06:52:09 +0300
committertsxv478 <vt0451@yandex.ru>2022-07-16 06:52:09 +0300
commit9654e64a3053932a24e74518a5fe5153255e79f6 (patch)
tree69e4bcde88d00697801e3da08edbe9d20d8e1d73 /config.def.h
parentf3b761e4989581c9dcbc628363ca3c0c70c438c1 (diff)
vanitygaps patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index a2ac963..7fb2e74 100644
--- a/config.def.h
+++ b/config.def.h
@@ -3,6 +3,11 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
+static const unsigned int gappih = 20; /* horiz inner gap between windows */
+static const unsigned int gappiv = 10; /* vert inner gap between windows */
+static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
+static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
+static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
@@ -37,11 +42,20 @@ 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 */
+#include "vanitygaps.c"
+
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
+ { "[]^", bstack },
+ { "[]@", spiral },
+ { "[]\\", dwindle },
+ { "[][", deck },
+ { "=[]=", centeredmaster },
+ { ">[]>", centeredfloatingmaster },
+ { "[0]", monocle },
{ "><>", NULL }, /* no layout function means floating behavior */
- { "[M]", monocle },
+ { NULL, NULL },
};
/* key definitions */
@@ -72,6 +86,7 @@ static Key keys[] = {
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
+ { MODKEY|Mod4Mask, XK_0, togglegaps, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },