aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h62
1 files changed, 35 insertions, 27 deletions
diff --git a/config.h b/config.h
index 873b580..2c20323 100644
--- a/config.h
+++ b/config.h
@@ -6,24 +6,24 @@ static const int gapsize = 10;
/* appearance */
static const Gap default_gap = {.isgap = 1, .realgap = gapsize, .gappx = gapsize};
-static unsigned int borderpx = 5; /* border pixel of windows */
-static unsigned int snap = 0; /* snap pixel */
-static int swallowfloating = 0; /* 1 means swallow floating windows by default */
-static int showbar = 1; /* 0 means no bar */
-static int topbar = 1; /* 0 means bottom bar */
+static unsigned int borderpx = gapsize / 2; /* border pixel of windows */
+static unsigned int snap = 0; /* snap pixel */
+static int swallowfloating = 0; /* 1 means swallow floating windows by default */
+static int showbar = 1; /* 0 means no bar */
+static int topbar = 1; /* 0 means bottom bar */
-static const int vertpad = gapsize; /* vertical padding of bar */
-static const int sidepad = gapsize; /* horizontal padding of bar */
+static const int vertpad = gapsize; /* vertical padding of bar */
+static const int sidepad = gapsize; /* horizontal padding of bar */
-static const int horizpadbar = gapsize; /* horizontal padding for statusbar */
-static const int vertpadbar = gapsize; /* vertical padding for statusbar */
+static const int horizpadbar = gapsize; /* horizontal padding for statusbar */
+static const int vertpadbar = gapsize; /* vertical padding for statusbar */
/* Display modes of the tab bar: never shown, always shown, shown only in */
/* monocle mode in presence of several windows. */
/* Modes after showtab_nmodes are disabled */
enum showtab_modes { showtab_never, showtab_auto, showtab_nmodes, showtab_always};
static const int showtab = showtab_auto; /* Default tab bar show mode */
-static const Bool toptab = False; /* False means bottom tab bar */
+static const Bool toptab = True; /* False means bottom tab bar */
static char font[] = "JetBrainsMono Nerd Font:size=19:pixelsize=24";
static char dmenufont[] = "JetBrainsMono Nerd Font:size=19:pixelsize=24";
@@ -55,21 +55,22 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating isterminal noswallow monitor */
- { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
+ /* class instance title tags mask isfloating isterminal noswallow monitor */
+ { "st-256color", NULL, NULL, 0, 0, 1, 0, -1 },
+ { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
/* layout(s) */
-static const float mfact = 0.55; /* factor of master 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 */
+static const float mfact = 0.55; /* factor of master 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 */
static const Layout layouts[] = {
/* symbol arrange function */
{ "  ", tile }, /* first entry is default */
- { "  ", monocle },
{ "  ", NULL }, /* no layout function means floating behavior */
+ { "  ", monocle },
};
/* key definitions */
@@ -90,30 +91,37 @@ static const char *termcmd[] = { "st", NULL };
static const Key keys[] = {
/* modifier key function argument */
- { MODKEY, XK_space, spawn, {.v = dmenucmd } },
+ { MODKEY|Mod1Mask, XK_BackSpace, quit, {0} },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_space, spawn, {.v = dmenucmd } },
{ MODKEY, XK_r, xrdb, {.v = NULL } },
- { MODKEY|Mod1Mask, XK_BackSpace, quit, {0} },
+ { MODKEY, XK_q, killclient, {0} },
- { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY|ShiftMask, XK_d, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_j, pushdown, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_k, pushup, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
+
+ { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_d, incnmaster, {.i = +1 } },
+ { MODKEY, XK_z, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
- { MODKEY, XK_q, killclient, {0} },
- { MODKEY, XK_f, setlayout, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY, XK_z, zoom, {0} },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { MODKEY, XK_w, tabmode, {-1} },
- { MODKEY|ShiftMask, XK_space, togglealwaysontop, {0} },
+ { MODKEY, XK_b, togglebar, {0} },
+ { MODKEY|ShiftMask, XK_b, tabmode, {-1} },
+
+ { MODKEY, XK_f, cyclelayout, {.i = +1} },
+ { MODKEY|ShiftMask, XK_f, cyclelayout, {.i = -1} },
+
+ { MODKEY, XK_7, togglesticky, {0} },
+ { MODKEY, XK_8, togglealwaysontop, {0} },
{ MODKEY, XK_a, spawn, SHCMD("passmenu") },
{ MODKEY, XK_Escape, spawn, SHCMD("powermenu") },