]> git.armaanb.net Git - dmenu.git/commitdiff
Remove config.def.h
authorArmaan Bhojwani <me@armaanb.net>
Fri, 18 Jun 2021 23:23:57 +0000 (19:23 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 18 Jun 2021 23:23:57 +0000 (19:23 -0400)
.gitignore
Makefile
config.def.h [deleted file]
config.h [new file with mode: 0644]

index ba7cfda85b93f3a7f7cc22681cc2cb3ed43b7244..171483ed1b3b798cc058907c615c58c5ec2c931b 100644 (file)
@@ -1,4 +1,3 @@
-config.h
 dmenu
 stest
 *.o
\ No newline at end of file
index a03a95c3003147eb9bdec6fedc3eddf3852bafd2..b8e2298c6817affef3fcf040e2fda8385f50af6f 100644 (file)
--- 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 (file)
index 0103bda..0000000
+++ /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 (file)
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[] = " ";