diff options
-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[] = " "; |