Merge branch 'environment-docs'

Closes #556
This commit is contained in:
Daniel Eklöf 2021-05-30 10:21:44 +02:00
commit d5ff8c5f6f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 70 additions and 0 deletions

View file

@ -55,6 +55,8 @@
* `${window-title}` to `notify`. * `${window-title}` to `notify`.
* Support for including files in `foot.ini` * Support for including files in `foot.ini`
(https://codeberg.org/dnkl/foot/issues/555). (https://codeberg.org/dnkl/foot/issues/555).
* `ENVIRONMENT` section in **foot**(1) and **footclient**(1) man pages
(https://codeberg.org/dnkl/foot/issues/556).
### Changed ### Changed
@ -145,6 +147,7 @@
### Security ### Security
### Contributors ### Contributors
* [r\_c\_f](https://codeberg.org/r_c_f) * [r\_c\_f](https://codeberg.org/r_c_f)
* [craigbarnes](https://codeberg.org/craigbarnes)
## 1.7.2 ## 1.7.2

View file

@ -325,6 +325,49 @@ numbers, when in _application_ mode.
See *foot.ini*(5) See *foot.ini*(5)
# ENVIRONMENT
The following environment variables are used by foot:
*SHELL*
The default child process to run, when no _command_ argument is
specified and the *shell* option in *foot.ini*(5) is not set.
*XDG\_CONFIG\_HOME*
Used to determine the default location of *foot.ini*(5).
*XDG\_CONFIG\_DIRS*
Used to determine the default fallback location of *foot.ini*(5),
when not found in *${XDG\_CONFIG\_HOME:-~/.config}*.
*XDG\_RUNTIME\_DIR*
Used to construct the default _PATH_ for the *--server*
option, when no explicit argument is given (see above).
*WAYLAND\_DISPLAY*
Used to construct the default _PATH_ for the *--server*
option, when no explicit argument is given (see above).
*XCURSOR\_THEME*
The name of the *Xcursor*(3) theme to use for pointers (typically
set by the Wayland compositor).
*XCURSOR\_SIZE*
The size to use for *Xcursor*(3) pointers (typically set by the
Wayland compositor).
The following environment variables are set in the child process:
*TERM*
terminfo/termcap identifier. This is used by client applications
to determine which capabilities a terminal supports. The value is
set according to either the *--term* command-line option or the
*term* config option in *foot.ini*(5).
*COLORTERM*
This variable is set to *truecolor*, to indicate to client
applications that 24-bit RGB colors are supported.
# BUGS # BUGS
Please report bugs to https://codeberg.org/dnkl/foot/issues Please report bugs to https://codeberg.org/dnkl/foot/issues

View file

@ -88,6 +88,30 @@ failure in the foot server.
In all other cases the exit code is that of the client application In all other cases the exit code is that of the client application
(i.e. the shell). (i.e. the shell).
# ENVIRONMENT
The following environment variables are used by footclient:
*XDG\_RUNTIME\_DIR*
Used to construct the default _PATH_ for the *--server-socket*
option, when no explicit argument is given (see above).
*WAYLAND\_DISPLAY*
Used to construct the default _PATH_ for the *--server-socket*
option, when no explicit argument is given (see above).
The following environment variables are set in the child process:
*TERM*
terminfo/termcap identifier. This is used by client applications
to determine which capabilities a terminal supports. The value is
set according to either the *--term* command-line option or the
*term* config option in *foot.ini*(5).
*COLORTERM*
This variable is set to *truecolor*, to indicate to client
applications that 24-bit RGB colors are supported.
# SEE ALSO # SEE ALSO
*foot*(1) *foot*(1)