diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-05-28 13:32:32 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-05-28 13:32:32 +0400 |
commit | f6d63877843ba0393307298196f4152875551d8e (patch) | |
tree | 72ce483227781ce8f3afea6e1bdf5dfd084cef07 | |
parent | df2f7d3f6fb4129f286c354c3d21f49bb1bf2fcb (diff) |
`config.h`: use macros instead to set `TERMINAL` and `BROWSER`
-rw-r--r-- | config.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,9 @@ #include <X11/XF86keysym.h> +#define BROWSER "firefox" +#define TERMINAL "st" + /* appearance */ static const unsigned int borderpx = 2; /* border pixel of windows */ static const int startwithgaps = 1; /* 1 means gaps are used by default */ @@ -62,8 +65,8 @@ 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_green, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "qutebrowser", NULL }; +static const char *termcmd[] = { TERMINAL, NULL }; +static const char *browsercmd[] = { BROWSER, NULL }; /* scripts */ static const char |