summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h42
1 files changed, 13 insertions, 29 deletions
diff --git a/config.h b/config.h
index cd7477b..14a9eea 100644
--- a/config.h
+++ b/config.h
@@ -4,17 +4,13 @@
#define TERMCLASS "st-256color"
/* appearance */
-static const unsigned int borderpx = 0; /* border pixel of windows; 3 is min pixels needed for smooth rounded corners */
+static const unsigned int borderpx = 0; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
-static const unsigned int gappih = 0; /* horiz inner gap between windows */
-static const unsigned int gappiv = 0; /* vert inner gap between windows */
-static const unsigned int gappoh = 0; /* horiz outer gap between windows and screen edge */
-static const unsigned int gappov = 0; /* vert outer gap between windows and screen edge */
-static const int smartgaps = 1; /* 1 means no outer gap when there is only one window */
+static const unsigned int minwsz = 20; /* Minimal height of a client for smfact */
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const int focusonwheel = 0;
+static const int focusonwheel = 0;
static const char *fonts[] = { "Hack Nerd Font:size=11", "JoyPixels:pixelsize:11:antialias=true:autohint=true"};
static const char dmenufont[] = "Hack Nerd Font:size=11";
static const char col_gray1[] = "#222222";
@@ -29,35 +25,33 @@ static const char *colors[][3] = {
};
/* tagging */
-static const char *tags[] = { "1", "2", "3", "4"};
+static const char *tags[] = { "1", "2", "3", "4" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating isterminal noswallow monitor */
+ /* class instance title tags mask isfloating isterminal noswallow monitor */
{ "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
- { "nyxt", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
+ { "nyxt", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
{ TERMCLASS, 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 float smfact = 0.00; /* factor of tiled chlients [0.00..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 0; /* 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 */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
- { "[@]", spiral },
- { "[\\]", dwindle },
};
/* key definitions */
@@ -79,6 +73,7 @@ static const char *upvol[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_S
static const char *downvol[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL };
static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL };
+
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
@@ -88,27 +83,16 @@ static Key keys[] = {
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY, XK_minus, incrgaps, {.i = +1 } },
- { MODKEY, XK_equal, incrgaps, {.i = -1 } },
- { MODKEY|ShiftMask, XK_minus, incrogaps, {.i = +1 } },
- { MODKEY|ShiftMask, XK_equal, incrogaps, {.i = -1 } },
- { MODKEY|ControlMask, XK_minus, incrigaps, {.i = +1 } },
- { MODKEY|ControlMask, XK_equal, incrigaps, {.i = -1 } },
- { MODKEY, XK_bracketleft, setborderpx, {.i = +1 } },
- { MODKEY, XK_bracketright, setborderpx, {.i = -1 } },
- { MODKEY, XK_backslash, setborderpx, {.i = 0 } },
- { MODKEY, XK_0, togglegaps, {0} },
- { MODKEY|ShiftMask, XK_0, defaultgaps, {0} },
+ { MODKEY|ShiftMask, XK_h, setmfact, {.f = -0.05} },
+ { MODKEY|ShiftMask, XK_l, setmfact, {.f = +0.05} },
+ { MODKEY|ShiftMask, XK_j, setsmfact, {.f = -0.05} },
+ { MODKEY|ShiftMask, XK_k, setsmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
- { MODKEY, XK_r, setlayout, {.v = &layouts[3]} },
- { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
@@ -138,7 +122,7 @@ static Key keys[] = {
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
-static Button buttons[] = {
+static const Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },