config: add default.bold-text-in-bright option

This commit is contained in:
Daniel Eklöf 2020-11-14 11:21:51 +01:00
parent c764a45ee0
commit 34abf665e2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 6 additions and 0 deletions

View file

@ -519,6 +519,9 @@ parse_section_main(const char *key, const char *value, struct config *conf,
conf->pad_y = y;
}
else if (strcmp(key, "bold-text-in-bright") == 0)
conf->bold_in_bright = str_to_bool(value);
else if (strcmp(key, "bell") == 0) {
if (strcmp(value, "set-urgency") == 0)
conf->bell_is_urgent = true;
@ -2017,6 +2020,7 @@ config_load(struct config *conf, const char *conf_path,
},
.pad_x = 2,
.pad_y = 2,
.bold_in_bright = false,
.bell_is_urgent = false,
.startup_mode = STARTUP_WINDOWED,
.fonts = {tll_init(), tll_init(), tll_init(), tll_init()},

View file

@ -79,6 +79,7 @@ struct config {
unsigned pad_x;
unsigned pad_y;
bool bold_in_bright;
bool bell_is_urgent;
enum { STARTUP_WINDOWED, STARTUP_MAXIMIZED, STARTUP_FULLSCREEN } startup_mode;

View file

@ -12,6 +12,7 @@
# term=foot
# login-shell=no
# workers=<number of logical CPUs>
# bold-text-in-bright=no
# bell=none
# word-delimiters=,│`|:"'()[]{}<>