mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
conf: rename 'startup-mode' to 'initial-window-mode'
This commit is contained in:
parent
758fd9fd58
commit
a2a370acba
4 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
config.c
2
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)
|
||||
|
|
|
|||
|
|
@ -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
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue