aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-14 10:21:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-14 10:22:19 +0000
commit34abf665e266a3285caf2a5c9b65bc93d88b3af7 (patch)
tree1612eca275cc929e1bcb0c0ff3bc02299b14ba9a
parentchangelog: move pipe-* actions from ‘fixed’ to ‘added’ (diff)
config: add default.bold-text-in-bright option
-rw-r--r--config.c4
-rw-r--r--config.h1
-rw-r--r--foot.ini1
3 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index b7909f9e..3e47179b 100644
--- a/config.c
+++ b/config.c
@@ -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()},
diff --git a/config.h b/config.h
index 48961790..a173015f 100644
--- a/config.h
+++ b/config.h
@@ -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;
diff --git a/foot.ini b/foot.ini
index b22ed049..7ab950c5 100644
--- a/foot.ini
+++ b/foot.ini
@@ -12,6 +12,7 @@
# term=foot
# login-shell=no
# workers=<number of logical CPUs>
+# bold-text-in-bright=no
# bell=none
# word-delimiters=,│`|:"'()[]{}<>