diff options
author | Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com> | 2010-06-29 20:59:03 -0300 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-07-04 21:52:43 +0200 |
commit | 38337511e9b5896006f276c111265c985b2af70d (patch) | |
tree | 0edd30656e1a336129a70f05b03ba6ba3b5c8968 /src/output.c | |
parent | 570bc669b4ad3c268025b70b217280788f6e23ba (diff) |
Support customized colors.
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output.c b/src/output.c index 3d6666e..c0c1480 100644 --- a/src/output.c +++ b/src/output.c @@ -21,9 +21,9 @@ char *color(const char *colorstr) { return colorbuf; } if (output_format == O_DZEN2) - (void)snprintf(colorbuf, sizeof(colorbuf), "^fg(%s)", colorstr); + (void)snprintf(colorbuf, sizeof(colorbuf), "^fg(%s)", cfg_getstr(cfg_general, colorstr)); else if (output_format == O_XMOBAR) - (void)snprintf(colorbuf, sizeof(colorbuf), "<fc=%s>", colorstr); + (void)snprintf(colorbuf, sizeof(colorbuf), "<fc=%s>", cfg_getstr(cfg_general, colorstr)); return colorbuf; } @@ -40,9 +40,9 @@ char *endcolor() { void print_seperator() { if (output_format == O_DZEN2) - printf("^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)"); + printf("^fg(%s)^p(5;-2)^ro(2)^p()^fg()^p(5)", cfg_getstr(cfg_general, "color_separator")); else if (output_format == O_XMOBAR) - printf("<fc=#333333> | </fc>"); + printf("<fc=%s> | </fc>", cfg_getstr(cfg_general, "color_separator")); else if (output_format == O_NONE) printf(" | "); } |