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:
@ -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;
|
||||
|
Reference in New Issue
Block a user