From 53b53dd8c24004d9b2a2170590432d62656c43c2 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Sun, 24 Apr 2016 19:57:35 +0300 Subject: Added plaintext markup configuration --- swaybar/config.c | 1 + swaybar/render.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'swaybar') diff --git a/swaybar/config.c b/swaybar/config.c index 6b9ff86b..7ef9a07e 100644 --- a/swaybar/config.c +++ b/swaybar/config.c @@ -46,6 +46,7 @@ char *parse_font(const char *font) { struct config *init_config() { struct config *config = calloc(1, sizeof(struct config)); config->status_command = NULL; + config->plaintext_markup = true; config->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM; config->font = strdup("monospace 10"); config->mode = NULL; diff --git a/swaybar/render.c b/swaybar/render.c index 5901b557..833198fd 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -280,7 +280,7 @@ void render(struct output *output, struct config *config, struct status_line *li if (line->protocol == TEXT) { get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line); cairo_move_to(cairo, window->width - margin - width, margin); - pango_printf(window->cairo, window->font, true, "%s", line->text_line); + pango_printf(window->cairo, window->font, config->plaintext_markup, "%s", line->text_line); } else if (line->protocol == I3BAR && line->block_line) { double pos = window->width - 0.5; bool edge = true; -- cgit v1.2.3-70-g09d2