Add support for background blur

This patch adds a new config option: colors{,2}.blur=no|yes. When
enabled, transparent background are also blurred.

Note that this requires the brand new ext-background-effect-v1
protocol, and specifically, that the compositor implements the blur
effect.
This commit is contained in:
Daniel Eklöf 2025-10-16 13:43:33 +02:00
parent dc0c8550c3
commit dea10e2e48
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
13 changed files with 154 additions and 43 deletions

View file

@ -1593,6 +1593,9 @@ parse_color_theme(struct context *ctx, struct color_theme *theme)
(int *)&theme->dim_blend_towards);
}
else if (streq(key, "blur"))
return value_to_bool(ctx, &theme->blur);
else {
LOG_CONTEXTUAL_ERR("not valid option");
return false;
@ -3546,6 +3549,7 @@ config_load(struct config *conf, const char *conf_path,
.scrollback_indicator = false,
.url = false,
},
.blur = false,
},
.initial_color_theme = COLOR_THEME_DARK,
.cursor = {