=== Custom separator symbol
Specifies a custom symbol to be used for the separator as opposed to the vertical,
-one pixel thick separator. Note that you may have to adjust the +sep_block_width+
-property.
+one pixel thick separator.
*Syntax*:
-------------------------
typedef struct xcb_colors_t xcb_colors_t;
+/* Cached width of the custom separator if one was set */
+int separator_symbol_width;
+
/*
* Early initialization of the connection to X11: Everything which does not
* depend on 'config'.
memset(&(ctx->block), '\0', sizeof(struct status_block));
/* Default width of the separator block. */
- ctx->block.sep_block_width = logical_px(9);
+ if (config.separator_symbol == NULL)
+ ctx->block.sep_block_width = logical_px(9);
+ else
+ ctx->block.sep_block_width = logical_px(8) + separator_symbol_width;
return 1;
}
/* Overall height of the bar (based on font size) */
int bar_height;
-/* Cached width of the custom separator if one was set */
-int separator_symbol_width;
-
/* These are only relevant for XKB, which we only need for grabbing modifiers */
int xkb_base;
int mod_pressed = 0;