This commit is contained in:
2026-06-16 23:44:01 +02:00
parent ead09443e5
commit be13b6476f
3 changed files with 14 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
@@ -16,8 +17,8 @@ static int smartgaps = 0; /* 1 means no outer gap when the
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 char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char *fonts[] = { "JetBrainsMono Nerd Font Mono:style=Bold:size=16",};
static const char dmenufont[] = "JetBrainsMono Nerd Font Mono:style=Bold:size=16";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
@@ -33,8 +34,8 @@ typedef struct {
const char *name;
const void *cmd;
} Sp;
const char *spcmd1[] = {"alacritty", "-T", "spterm", NULL };
const char *spcmd2[] = {"alacritty", "-T", "spfm", NULL };
const char *spcmd1[] = {"alacritty", "--class", "spterm", NULL };
const char *spcmd2[] = {"alacritty", "--class", "spfm", NULL };
const char *spcmd3[] = {"keepassxc", NULL };
static Sp scratchpads[] = {
/* name cmd */
@@ -52,8 +53,11 @@ static const Rule rules[] = {
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating isterminal isswallow monitor */
{ "steam", NULL, NULL, 1 << 1, 0, 0, -1 -1 },
{ "Firefox", NULL, NULL, 1 << 2, 0, 0, -1 -1 },
{ "brave-browser", NULL, NULL, 1 << 3, 0, 0, -1 -1 },
{ "discord", NULL, NULL, 1 << 4, 0, 0, -1 -1 },
{ "feishin", NULL, NULL, 1 << 5, 0, 0, -1 -1 },
{ NULL, "spterm", NULL, SPTAG(0), 1, 0, 0, -1 },
{ NULL, "spfm", NULL, SPTAG(1), 1, 0, 0, -1 },
{ NULL, "keepassxc", NULL, SPTAG(2), 0, 0, 0, -1 },
@@ -64,7 +68,7 @@ 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 = 144; /* refresh rate (per second) for client move/resize */
static const int refreshrate = 120; /* refresh rate (per second) for client move/resize */
#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
#include "vanitygaps.c"
@@ -110,8 +114,10 @@ static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = roficmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
{ MODKEY, XK_b, spawn, {.v = ffcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_p, incnmaster, {.i = -1 } },
@@ -123,7 +129,6 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_h, setcfact, {.f = +0.25} },
{ MODKEY|ShiftMask, XK_l, setcfact, {.f = -0.25} },
{ MODKEY|ShiftMask, XK_o, setcfact, {.f = 0.00} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY|Mod1Mask, XK_u, incrgaps, {.i = +1 } },
{ MODKEY|Mod1Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
{ MODKEY|Mod1Mask, XK_i, incrigaps, {.i = +1 } },
@@ -141,7 +146,7 @@ static const Key keys[] = {
{ MODKEY|Mod1Mask, XK_0, togglegaps, {0} },
{ MODKEY|Mod1Mask|ShiftMask, XK_0, defaultgaps, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {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]} },
@@ -163,7 +168,7 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY|ShiftMask, XK_1, quit, {1} },
{ MODKEY|ShiftMask, XK_r, quit, {1} },
};
/* button definitions */

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.