Custom colors can be set from the command line.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2010-10-24 01:24:51 -02:00
committed by Axel Wagner
parent 73728f519b
commit 6376cf99d2
3 changed files with 152 additions and 17 deletions

View File

@ -9,12 +9,42 @@
#ifndef XCB_H_
#define XCB_H_
#include <stdint.h>
struct colors_t {
char *bar_fg;
char *bar_bg;
char *active_ws_fg;
char *active_ws_bg;
char *inactive_ws_fg;
char *inactive_ws_bg;
char *urgent_ws_bg;
char *urgent_ws_fg;
};
struct parsed_colors_t {
uint32_t bar_fg;
uint32_t bar_bg;
uint32_t active_ws_fg;
uint32_t active_ws_bg;
uint32_t inactive_ws_fg;
uint32_t inactive_ws_bg;
uint32_t urgent_ws_bg;
uint32_t urgent_ws_fg;
};
/*
* Initialize xcb and use the specified fontname for text-rendering
*
*/
void init_xcb();
/*
* Initialize the colors
*
*/
void init_colors(const struct colors_t *colors);
/*
* Cleanup the xcb-stuff.
* Called once, before the program terminates.