From 07caa91f0e44707c6d936fe974d7b0793c949ba7 Mon Sep 17 00:00:00 2001 From: meftimes Date: Tue, 25 Jun 2024 22:45:04 -0400 Subject: [PATCH] define TERMINAL and BROWSER variables --- config.def.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index bc6f57a..bc79e1d 100644 --- a/config.def.h +++ b/config.def.h @@ -1,5 +1,10 @@ /* See LICENSE file for copyright and license details. */ +/* Constants */ +#define TERMINAL "st" +#define TERMCLASS "St" +#define BROWSER "librewolf" + /* appearance */ static unsigned int borderpx = 1; /* border pixel of windows */ static unsigned int snap = 32; /* snap pixel */ @@ -24,8 +29,8 @@ typedef struct { const char *name; const void *cmd; } Sp; -const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL }; -const char *spcmd2[] = {"st", "-n", "spcalc", "-f", "monospace:size=16", "-g", "50x20", "-e", "bc", "-lq", NULL }; +const char *spcmd1[] = {TERMINAL, "-n", "spterm", "-g", "120x34", NULL }; +const char *spcmd2[] = {TERMINAL, "-n", "spcalc", "-f", "monospace:size=16", "-g", "50x20", "-e", "bc", "-lq", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, @@ -73,7 +78,7 @@ 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", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; -static const char *termcmd[] = { "st", NULL }; +static const char *termcmd[] = { TERMINAL, NULL }; /* * Xresources preferences to load at startup