mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04: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
|
* User configurable key- and mouse bindings. See `man 5 foot` and the
|
||||||
example `footrc` (https://codeberg.org/dnkl/foot/issues/1)
|
example `footrc` (https://codeberg.org/dnkl/foot/issues/1)
|
||||||
* **startup-mode** option to `footrc`, that lets you control the
|
* **initial-window-mode** option to `footrc`, that lets you control
|
||||||
initial window mode: _windowed_, _maximized_ or _fullscreen_.
|
the initial mode for each newly spawned window: _windowed_,
|
||||||
|
_maximized_ or _fullscreen_.
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### 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;
|
conf->pad_y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(key, "startup-mode") == 0) {
|
else if (strcmp(key, "initial-window-mode") == 0) {
|
||||||
if (strcmp(value, "windowed") == 0)
|
if (strcmp(value, "windowed") == 0)
|
||||||
conf->startup_mode = STARTUP_WINDOWED;
|
conf->startup_mode = STARTUP_WINDOWED;
|
||||||
else if (strcmp(value, "maximized") == 0)
|
else if (strcmp(value, "maximized") == 0)
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,9 @@ in this order:
|
||||||
Padding between border and glyphs, in pixels, on the form
|
Padding between border and glyphs, in pixels, on the form
|
||||||
_XxY_ (-padding). Default: _2x2_.
|
_XxY_ (-padding). Default: _2x2_.
|
||||||
|
|
||||||
*startup-mode*
|
*initial-window-mode*
|
||||||
Initial window mode: *windowed*, *maximized* or
|
Initial window mode for each newly spawned window: *windowed*,
|
||||||
*fullscreen*. Default: _windowed_.
|
*maximized* or *fullscreen*. Default: _windowed_.
|
||||||
|
|
||||||
*shell*
|
*shell*
|
||||||
Executable to launch. Typically a shell. Default: _$SHELL_ if set,
|
Executable to launch. Typically a shell. Default: _$SHELL_ if set,
|
||||||
|
|
|
||||||
2
footrc
2
footrc
|
|
@ -4,7 +4,7 @@
|
||||||
# scrollback=1000
|
# scrollback=1000
|
||||||
# geometry=700x500
|
# geometry=700x500
|
||||||
# pad=2x2
|
# pad=2x2
|
||||||
# startup-mode=windowed
|
# initial-window-mode=windowed
|
||||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||||
# term=foot
|
# term=foot
|
||||||
# login-shell=no
|
# login-shell=no
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue