aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-28 11:04:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-28 11:04:00 +0000
commita2a370acba7282c11a21039eaa6897a1f1e05498 (patch)
tree7bc50b1832ba3313a09e8f2ff676aed91d2ae97a
parentclient: add --maximized and --fullscreen (diff)
conf: rename 'startup-mode' to 'initial-window-mode'
-rw-r--r--CHANGELOG.md5
-rw-r--r--config.c2
-rw-r--r--doc/foot.5.scd6
-rw-r--r--footrc2
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