conf: rename 'startup-mode' to 'initial-window-mode'

This commit is contained in:
Daniel Eklöf 2020-03-28 12:04:00 +01:00
parent 758fd9fd58
commit a2a370acba
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 8 additions and 7 deletions

View file

@ -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

View file

@ -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)

View file

@ -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,

2
footrc
View file

@ -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