Skip to content

Commit 9f99f14

Browse files
committed
Add if pywal statement
1 parent 7c4f127 commit 9f99f14

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

config.def.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ static const char *fonts[] = {
99
"monospace:size=10"
1010
};
1111
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
12-
#include "/home/salahdin/.cache/wal/colors-wal-dmenu.h"
12+
#define pywal "/home/salahdin/.cache/wal/colors-wal-dmenu.h"
13+
14+
#if __has_include(pywal)
15+
#include pywal
16+
#else
17+
@@ -11,6 +11,8 @@ static const char *colors[SchemeLast][2]
18+
/* fg bg */
19+
[SchemeNorm] = { "#bbbbbb", "#222222" },
20+
[SchemeSel] = { "#eeeeee", "#005577" },
21+
[SchemeSelHighlight] = { "#ffc978", "#005577" },
22+
[SchemeNormHighlight] = { "#ffc978", "#222222" },
23+
[SchemeOut] = { "#000000", "#00ffff" },
24+
};
25+
#endif
1326
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
1427
static unsigned int lines = 0;
1528

0 commit comments

Comments
 (0)