From 58a1ffe72483ffb52d617d2985851781e82a45b8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 27 Feb 2022 16:29:35 +0100 Subject: config: add tweak option to allow disabling sixels Closes #950 --- config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index b247f3e9..513d5032 100644 --- a/config.c +++ b/config.c @@ -2433,6 +2433,9 @@ parse_section_tweak(struct context *ctx) else if (strcmp(key, "font-monospace-warn") == 0) return value_to_bool(ctx, &conf->tweak.font_monospace_warn); + else if (strcmp(key, "sixel") == 0) + return value_to_bool(ctx, &conf->tweak.sixel); + else { LOG_CONTEXTUAL_ERR("not a valid option: %s", key); return false; @@ -2974,6 +2977,7 @@ config_load(struct config *conf, const char *conf_path, .box_drawing_base_thickness = 0.04, .box_drawing_solid_shades = true, .font_monospace_warn = true, + .sixel = true, }, .notifications = tll_init(), -- cgit v1.3