config: add tweak option to allow disabling sixels

Closes #950
This commit is contained in:
jvoisin 2022-02-27 16:29:35 +01:00 committed by Daniel Eklöf
parent 0d1e6960af
commit 58a1ffe724
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 26 additions and 2 deletions

View file

@ -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(),