i3bar: set markup per block

Add `markup` to the i3bar protocol as a block member.

This is a string that determines how the block should be parsed as
markup. "pango" indicates the block should be parsed as Pango markup.
"none" indicates the block should not be parsed as markup.
This commit is contained in:
Tony Crisci
2015-03-24 02:27:38 -04:00
parent ff62a68c1e
commit e681f34ec1
5 changed files with 45 additions and 3 deletions

View File

@ -38,11 +38,18 @@ struct status_block {
i3String *short_text;
char *color;
/* min_width can be specified either as a numeric value (in pixels) or as a
* string. For strings, we set min_width to the measured text width of
* min_width_str. */
uint32_t min_width;
char *min_width_str;
blockalign_t align;
bool urgent;
bool no_separator;
bool is_markup;
/* The amount of pixels necessary to render a separater after the block. */
uint32_t sep_block_width;