14 * Returns the correct color format for dzen (^fg(color)) or xmobar (<fc=color>)
17 char *color(const char *colorstr) {
18 static char colorbuf[32];
19 if (!cfg_getbool(cfg_general, "colors")) {
23 if (output_format == O_DZEN2)
24 (void)snprintf(colorbuf, sizeof(colorbuf), "^fg(%s)", colorstr);
25 else if (output_format == O_XMOBAR)
26 (void)snprintf(colorbuf, sizeof(colorbuf), "<fc=%s>", colorstr);
32 * Some color formats (xmobar) require to terminate colors again
36 if (output_format == O_XMOBAR)
41 void print_seperator() {
42 if (output_format == O_DZEN2)
43 printf("^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)");
44 else if (output_format == O_XMOBAR)
45 printf("<fc=#333333> | </fc>");
46 else if (output_format == O_NONE)