From a2a370acba7282c11a21039eaa6897a1f1e05498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 28 Mar 2020 12:04:00 +0100 Subject: [PATCH] conf: rename 'startup-mode' to 'initial-window-mode' --- CHANGELOG.md | 5 +++-- config.c | 2 +- doc/foot.5.scd | 6 +++--- footrc | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e5b9a85..dc893176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,9 @@ * User configurable key- and mouse bindings. See `man 5 foot` and the example `footrc` (https://codeberg.org/dnkl/foot/issues/1) -* **startup-mode** option to `footrc`, that lets you control the - initial window mode: _windowed_, _maximized_ or _fullscreen_. +* **initial-window-mode** option to `footrc`, that lets you control + the initial mode for each newly spawned window: _windowed_, + _maximized_ or _fullscreen_. ### Changed diff --git a/config.c b/config.c index 93b536cb..da723e97 100644 --- a/config.c +++ b/config.c @@ -234,7 +234,7 @@ parse_section_main(const char *key, const char *value, struct config *conf, conf->pad_y = y; } - else if (strcmp(key, "startup-mode") == 0) { + else if (strcmp(key, "initial-window-mode") == 0) { if (strcmp(value, "windowed") == 0) conf->startup_mode = STARTUP_WINDOWED; else if (strcmp(value, "maximized") == 0) diff --git a/doc/foot.5.scd b/doc/foot.5.scd index de32f712..a1393cca 100644 --- a/doc/foot.5.scd +++ b/doc/foot.5.scd @@ -40,9 +40,9 @@ in this order: Padding between border and glyphs, in pixels, on the form _XxY_ (-padding). Default: _2x2_. -*startup-mode* - Initial window mode: *windowed*, *maximized* or - *fullscreen*. Default: _windowed_. +*initial-window-mode* + Initial window mode for each newly spawned window: *windowed*, + *maximized* or *fullscreen*. Default: _windowed_. *shell* Executable to launch. Typically a shell. Default: _$SHELL_ if set, diff --git a/footrc b/footrc index 0254c31a..c77c33c3 100644 --- a/footrc +++ b/footrc @@ -4,7 +4,7 @@ # scrollback=1000 # geometry=700x500 # pad=2x2 -# startup-mode=windowed +# initial-window-mode=windowed # shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) # term=foot # login-shell=no