aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorjvoisin <julien.voisin@dustri.org>2022-02-27 15:29:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-06 17:25:43 +0000
commit58a1ffe72483ffb52d617d2985851781e82a45b8 (patch)
tree5514c7ef7eea532a1f6d37e5a0f3af3502991308 /config.c
parentosc: avoid unnecessary calls to strlen(3) (diff)
config: add tweak option to allow disabling sixels
Closes #950
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
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(),