diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | dmenu.c | 12 |
2 files changed, 7 insertions, 11 deletions
@@ -18,7 +18,11 @@ options: | |||
18 | @echo CC -c $< | 18 | @echo CC -c $< |
19 | @${CC} -c $< ${CFLAGS} | 19 | @${CC} -c $< ${CFLAGS} |
20 | 20 | ||
21 | ${OBJ}: config.mk draw.h | 21 | config.h: |
22 | @echo creating $@ from config.def.h | ||
23 | @cp config.def.h $@ | ||
24 | |||
25 | ${OBJ}: config.h config.mk draw.h | ||
22 | 26 | ||
23 | dmenu: dmenu.o draw.o | 27 | dmenu: dmenu.o draw.o |
24 | @echo CC -o $@ | 28 | @echo CC -o $@ |
@@ -44,20 +44,10 @@ static char text[BUFSIZ] = ""; | |||
44 | static int bh, mw, mh; | 44 | static int bh, mw, mh; |
45 | static int inputw, promptw; | 45 | static int inputw, promptw; |
46 | static size_t cursor = 0; | 46 | static size_t cursor = 0; |
47 | static const char *font = NULL; | ||
48 | static const char *prompt = NULL; | ||
49 | static const char *normbgcolor = "#222222"; | ||
50 | static const char *normfgcolor = "#bbbbbb"; | ||
51 | static const char *selbgcolor = "#005577"; | ||
52 | static const char *selfgcolor = "#eeeeee"; | ||
53 | static const char *outbgcolor = "#00ffff"; | ||
54 | static const char *outfgcolor = "#000000"; | ||
55 | static unsigned int lines = 0; | ||
56 | static unsigned long normcol[ColLast]; | 47 | static unsigned long normcol[ColLast]; |
57 | static unsigned long selcol[ColLast]; | 48 | static unsigned long selcol[ColLast]; |
58 | static unsigned long outcol[ColLast]; | 49 | static unsigned long outcol[ColLast]; |
59 | static Atom clip, utf8; | 50 | static Atom clip, utf8; |
60 | static Bool topbar = True; | ||
61 | static DC *dc; | 51 | static DC *dc; |
62 | static Item *items = NULL; | 52 | static Item *items = NULL; |
63 | static Item *matches, *matchend; | 53 | static Item *matches, *matchend; |
@@ -65,6 +55,8 @@ static Item *prev, *curr, *next, *sel; | |||
65 | static Window win; | 55 | static Window win; |
66 | static XIC xic; | 56 | static XIC xic; |
67 | 57 | ||
58 | #include "config.h" | ||
59 | |||
68 | static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; | 60 | static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; |
69 | static char *(*fstrstr)(const char *, const char *) = strstr; | 61 | static char *(*fstrstr)(const char *, const char *) = strstr; |
70 | 62 | ||