aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/config.c1
-rw-r--r--swaybar/render.c2
2 files changed, 2 insertions, 1 deletions
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;