mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
consistent booleans in config, reset legacy bell
This commit is contained in:
parent
4c73172ce5
commit
5df981d23f
2 changed files with 12 additions and 6 deletions
12
config.c
12
config.c
|
|
@ -605,11 +605,17 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
};
|
};
|
||||||
tll_push_back(conf->notifications, deprecation);
|
tll_push_back(conf->notifications, deprecation);
|
||||||
|
|
||||||
if (strcmp(value, "set-urgency") == 0)
|
if (strcmp(value, "set-urgency") == 0) {
|
||||||
|
memset(&conf->bell, 0, sizeof(conf->bell));
|
||||||
conf->bell.urgent = true;
|
conf->bell.urgent = true;
|
||||||
else if (strcmp(value, "notify") == 0)
|
}
|
||||||
|
else if (strcmp(value, "notify") == 0) {
|
||||||
|
memset(&conf->bell, 0, sizeof(conf->bell));
|
||||||
conf->bell.notify = true;
|
conf->bell.notify = true;
|
||||||
/* we do nothing by default, so none may be ignored */
|
}
|
||||||
|
else if (strcmp(value, "none") == 0) {
|
||||||
|
memset(&conf->bell, 0, sizeof(conf->bell));
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
LOG_AND_NOTIFY_ERR(
|
LOG_AND_NOTIFY_ERR(
|
||||||
"%s%d: [default]: bell: "
|
"%s%d: [default]: bell: "
|
||||||
|
|
|
||||||
6
foot.ini
6
foot.ini
|
|
@ -33,10 +33,10 @@
|
||||||
# osc8-underline=url-mode
|
# osc8-underline=url-mode
|
||||||
|
|
||||||
[bell]
|
[bell]
|
||||||
# urgent=false
|
# urgent=no
|
||||||
# notify=false
|
# notify=no
|
||||||
# command=
|
# command=
|
||||||
# command_focused=false
|
# command_focused=no
|
||||||
|
|
||||||
[scrollback]
|
[scrollback]
|
||||||
# lines=1000
|
# lines=1000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue