From 554c750d9ecb1930cdfa7bbd6931204972843185 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 21 Aug 2026 16:05:15 -0400 Subject: clean config.h after rebase to 6.8, drop vanitygaps/scratchpad/restartsig --- config.h | 108 ++++++++++++++++++++++++++++----------------------------------- 1 file changed, 48 insertions(+), 60 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 66b7028..bcf85c3 100644 --- a/config.h +++ b/config.h @@ -3,11 +3,6 @@ /* appearance */ static const unsigned int borderpx = 0; /* 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 = 20; /* vert inner gap between windows */ -static const unsigned int gappoh = 40; /* horiz outer gap between windows and screen edge */ -static const unsigned int gappov = 40; /* vert outer gap between windows and screen edge */ -static const 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" }; @@ -31,22 +26,23 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor scratch key */ - { "Gimp", NULL, NULL, 0, 1, -1, 0 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1, 0 }, - { "Vivaldi", NULL, NULL, 1 << 8, 0, -1, 0 }, - { "Brave", NULL, NULL, 1 << 8, 0, -1, 0 }, - { "KeePassXC", NULL, NULL, 1 << 3, 0, -1, 0 }, - { "Mattermost", NULL, NULL, 1 << 0, 0, 0, 0 }, - { "Signal", NULL, NULL, 1 << 0, 0, 0, 0 }, - { "easyeffects", NULL, NULL, 1 << 5, 0, -1, 0 }, - { NULL, NULL, "scratchpad", 0, 1, -1, 's' }, + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { "Vivaldi", NULL, NULL, 1 << 8, 0, -1 }, + { "Brave", NULL, NULL, 1 << 8, 0, -1 }, + { "KeePassXC", NULL, NULL, 1 << 3, 0, -1 }, + { "Mattermost", NULL, NULL, 1 << 0, 0, 0 }, + { "Signal", NULL, NULL, 1 << 0, 0, 0 }, + { "easyeffects", NULL, NULL, 1 << 5, 0, -1 }, }; /* 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 int refreshrate = 120; /* refresh rate (per second) for client move/resize */ static const Layout layouts[] = { /* symbol arrange function */ @@ -70,54 +66,47 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; -static const char *scratchpadcmd[] = {"s", "st", "-t", "scratchpad", NULL }; -static Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_b, togglebar, {0} }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { Mod4Mask, XK_d, spawn, {.v = dmenucmd } }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_equal, incrgaps, {.i = +2 } }, - { MODKEY, XK_minus, incrgaps, {.i = -2 } }, - { MODKEY|ShiftMask, XK_equal, defaultgaps, {0} }, - { MODKEY|ShiftMask, XK_minus, togglegaps, {0} }, - { MODKEY, XK_Return, zoom, {0} }, - { Mod4Mask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY, XK_q, 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_space, setlayout, {0} }, - { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~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_grave, togglescratch, {.v = scratchpadcmd } }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_Escape, quit, {0} }, - { MODKEY|ControlMask|ShiftMask, XK_Escape, quit, {1} } +static const Key keys[] = { + /* modifier key function argument */ + { MODKEY, XK_b, togglebar, {0} }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_i, incnmaster, {.i = +1 } }, + { MODKEY, XK_d, incnmaster, {.i = -1 } }, + { Mod4Mask, XK_d, spawn, {.v = dmenucmd } }, + { MODKEY, XK_h, setmfact, {.f = -0.05} }, + { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY, XK_Return, zoom, {0} }, + { Mod4Mask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_Tab, view, {0} }, + { MODKEY, XK_q, 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_space, setlayout, {0} }, + { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY, XK_0, view, {.ui = ~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 } }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) + { MODKEY|ShiftMask, XK_Escape, quit, {0} }, }; /* 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]} }, @@ -130,5 +119,4 @@ static Button buttons[] = { { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - +}; \ No newline at end of file -- cgit v1.2.3