diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-07 16:25:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 16:25:12 -0500 |
| commit | a92ea0969e83fff28c276b7a814563627a243fad (patch) | |
| tree | 3bf4563b56eaa687991f1629f966f86eeea755b6 /dwm/config.def.h | |
| parent | b59b8b8e5d16af7f0daccb280a4991e3fe428e41 (diff) | |
| parent | 2b59e5f8f62606d5ef2e7744b6f52d1b4f3e0430 (diff) | |
Merge pull request #1 from ihateamongus/codex/analyze-oldresources-folder-for-performance
Add scratchpad, gaps, and dynamic accent color to dwm
Diffstat (limited to 'dwm/config.def.h')
| -rw-r--r-- | dwm/config.def.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h index 81c3fc0..3b5b789 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -2,6 +2,7 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int gappx = 5; /* gaps between windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -60,11 +61,14 @@ 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 scratchpadname[] = "scratchpad"; +static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -86,6 +90,9 @@ static const Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_minus, setgaps, {.i = -1 } }, + { MODKEY, XK_equal, setgaps, {.i = +1 } }, + { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) |
