From 79333fb84fd0d7115788deadc1f182bafefc0b78 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Mon, 3 Jun 2024 13:09:57 +0100 Subject: [PATCH] Dmenu font setting --- suckless/dmenu/config.def.h | 2 +- suckless/dwm/config.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/suckless/dmenu/config.def.h b/suckless/dmenu/config.def.h index 36105e59..14c0118d 100644 --- a/suckless/dmenu/config.def.h +++ b/suckless/dmenu/config.def.h @@ -4,7 +4,7 @@ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=10" + "JetBrainsMono NF:size=20" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h index 6f5c96a6..089ab451 100644 --- a/suckless/dwm/config.h +++ b/suckless/dwm/config.h @@ -13,7 +13,6 @@ static const int showsystray = 1; /* 0 means no systray */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "JetBrainsMono NF:size=20" }; -static const char dmenufont[] = "JetBrainsMono NF:size=20"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -65,13 +64,15 @@ static const Layout layouts[] = { /* commands */ 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 *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *slockcmd[] = { "slock", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },