From: Armaan Bhojwani Date: Fri, 18 Jun 2021 23:23:57 +0000 (-0400) Subject: Remove config.def.h X-Git-Url: https://git.armaanb.net/?p=dmenu.git;a=commitdiff_plain;h=7189bae116dd9320412dbc24c2260f18a6e6498a Remove config.def.h --- diff --git a/.gitignore b/.gitignore index ba7cfda..171483e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -config.h dmenu stest *.o \ No newline at end of file diff --git a/Makefile b/Makefile index a03a95c..b8e2298 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,7 @@ options: .c.o: $(CC) -c $(CFLAGS) $< -config.h: - cp config.def.h $@ - -$(OBJ): arg.h config.h config.mk drw.h +$(OBJ): arg.h config.mk drw.h dmenu: dmenu.o drw.o util.o $(CC) -o $@ dmenu.o drw.o util.o $(LDFLAGS) @@ -33,7 +30,7 @@ clean: dist: clean mkdir -p dmenu-$(VERSION) - cp LICENSE Makefile README arg.h config.def.h config.mk dmenu.1\ + cp LICENSE Makefile README arg.h config.mk dmenu.1\ drw.h util.h dmenu_path dmenu_run stest.1 $(SRC)\ dmenu-$(VERSION) tar -cf dmenu-$(VERSION).tar dmenu-$(VERSION) diff --git a/config.def.h b/config.def.h deleted file mode 100644 index 0103bda..0000000 --- a/config.def.h +++ /dev/null @@ -1,26 +0,0 @@ -/* 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 */ -static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ -/* -fn option overrides fonts[0]; default X11 font or font set */ -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" }, - [SchemeSelHighlight] = { "#ffc978", "#005577" }, - [SchemeNormHighlight] = { "#ffc978", "#222222" }, - [SchemeOut] = { "#000000", "#00ffff" }, -}; -/* -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[] = " "; diff --git a/config.h b/config.h new file mode 100644 index 0000000..cf0fe3b --- /dev/null +++ b/config.h @@ -0,0 +1,26 @@ +/* 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 */ +static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ +/* -fn option overrides fonts[0]; default X11 font or font set */ +static const char *fonts[] = { + "JetBrainsMono Medium NF:pixelsize=14:antialias=true:autohint=true" +}; +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" }, + [SchemeSelHighlight] = { "#ffc978", "#005577" }, + [SchemeNormHighlight] = { "#ffc978", "#222222" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; +/* -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[] = " ";