mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04:00
config: add default.bold-text-in-bright option
This commit is contained in:
parent
c764a45ee0
commit
34abf665e2
3 changed files with 6 additions and 0 deletions
4
config.c
4
config.c
|
|
@ -519,6 +519,9 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
conf->pad_y = y;
|
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) {
|
else if (strcmp(key, "bell") == 0) {
|
||||||
if (strcmp(value, "set-urgency") == 0)
|
if (strcmp(value, "set-urgency") == 0)
|
||||||
conf->bell_is_urgent = true;
|
conf->bell_is_urgent = true;
|
||||||
|
|
@ -2017,6 +2020,7 @@ config_load(struct config *conf, const char *conf_path,
|
||||||
},
|
},
|
||||||
.pad_x = 2,
|
.pad_x = 2,
|
||||||
.pad_y = 2,
|
.pad_y = 2,
|
||||||
|
.bold_in_bright = false,
|
||||||
.bell_is_urgent = false,
|
.bell_is_urgent = false,
|
||||||
.startup_mode = STARTUP_WINDOWED,
|
.startup_mode = STARTUP_WINDOWED,
|
||||||
.fonts = {tll_init(), tll_init(), tll_init(), tll_init()},
|
.fonts = {tll_init(), tll_init(), tll_init(), tll_init()},
|
||||||
|
|
|
||||||
1
config.h
1
config.h
|
|
@ -79,6 +79,7 @@ struct config {
|
||||||
unsigned pad_x;
|
unsigned pad_x;
|
||||||
unsigned pad_y;
|
unsigned pad_y;
|
||||||
|
|
||||||
|
bool bold_in_bright;
|
||||||
bool bell_is_urgent;
|
bool bell_is_urgent;
|
||||||
|
|
||||||
enum { STARTUP_WINDOWED, STARTUP_MAXIMIZED, STARTUP_FULLSCREEN } startup_mode;
|
enum { STARTUP_WINDOWED, STARTUP_MAXIMIZED, STARTUP_FULLSCREEN } startup_mode;
|
||||||
|
|
|
||||||
1
foot.ini
1
foot.ini
|
|
@ -12,6 +12,7 @@
|
||||||
# term=foot
|
# term=foot
|
||||||
# login-shell=no
|
# login-shell=no
|
||||||
# workers=<number of logical CPUs>
|
# workers=<number of logical CPUs>
|
||||||
|
# bold-text-in-bright=no
|
||||||
# bell=none
|
# bell=none
|
||||||
# word-delimiters=,│`|:"'()[]{}<>
|
# word-delimiters=,│`|:"'()[]{}<>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue