diff options
author | rafa_99 <rafa99@protonmail.com> | 2021-04-13 13:52:59 +0100 |
---|---|---|
committer | rafa_99 <rafa99@protonmail.com> | 2021-04-13 13:52:59 +0100 |
commit | 65a6b2007eaed72dc289dd6211e1309e9d1f0383 (patch) | |
tree | 8ea290ec539131ccf3d3b81efdbb77c22ed1122d | |
parent | 4b064be367cfa20d39b93b8cf29ba705363ef6f2 (diff) |
Modularized Colors and Made a custom Config
-rw-r--r-- | colors.h | 6 | ||||
-rw-r--r-- | config.def.h | 9 | ||||
-rw-r--r-- | config.h | 20 |
3 files changed, 29 insertions, 6 deletions
diff --git a/colors.h b/colors.h new file mode 100644 index 0000000..34c12de --- /dev/null +++ b/colors.h @@ -0,0 +1,6 @@ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#005577" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; diff --git a/config.def.h b/config.def.h index 1edb647..bfc0083 100644 --- a/config.def.h +++ b/config.def.h @@ -7,12 +7,9 @@ static const char *fonts[] = { "monospace:size=10" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ -static const char *colors[SchemeLast][2] = { - /* fg bg */ - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#005577" }, - [SchemeOut] = { "#000000", "#00ffff" }, -}; + +#include "colors.h" + /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; diff --git a/config.h b/config.h new file mode 100644 index 0000000..bc8e1bb --- /dev/null +++ b/config.h @@ -0,0 +1,20 @@ +/* See LICENSE file for copyright and license details. */ +/* Default settings; can be overriden by command line. */ + +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[] = { + "FiraCode Nerd Font:size=14" +}; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ + +#include "colors.h" + +/* -l option; if nonzero, dmenu uses vertical list with given number of lines */ +static unsigned int lines = 0; + +/* + * Characters not considered part of a word while deleting words + * for example: " /?\"&[]" + */ +static const char worddelimiters[] = " "; |