diff options
| author | jvoisin <julien.voisin@dustri.org> | 2022-02-27 15:29:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-06 17:25:43 +0000 |
| commit | 58a1ffe72483ffb52d617d2985851781e82a45b8 (patch) | |
| tree | 5514c7ef7eea532a1f6d37e5a0f3af3502991308 /config.c | |
| parent | osc: 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(), |
