2021-07-17 13:58:42 +03:00
|
|
|
:orphan:
|
|
|
|
|
2021-07-17 04:06:56 +03:00
|
|
|
Glossary
|
|
|
|
=========
|
|
|
|
|
|
|
|
.. glossary::
|
|
|
|
|
|
|
|
os_window
|
|
|
|
kitty has two kinds of windows. Operating System windows, refered to as :term:`OS
|
|
|
|
Window <os_window>`, and *kitty windows*. An OS Window consists of one or more kitty
|
|
|
|
:term:`tabs <tab>`. Each tab in turn consists of one or more *kitty
|
|
|
|
windows* organized in a :term:`layout`.
|
|
|
|
|
|
|
|
tab
|
|
|
|
A *tab* refers to a group of :term:`kitty windows <window>`, organized in
|
|
|
|
a :term:`layout`. Every :term:`OS Window <os_window>` contains one or more tabs.
|
|
|
|
|
|
|
|
layout
|
|
|
|
A *layout* is a system of organizing :term:`kitty windows <window>` in
|
|
|
|
groups inside a tab. The layout automatically maintains the size and
|
|
|
|
position of the windows, think of a layout as a tiling window manager for
|
|
|
|
the terminal. See :doc:`layouts` for details.
|
|
|
|
|
|
|
|
window
|
|
|
|
kitty has two kinds of windows. Operating System windows, refered to as :term:`OS
|
|
|
|
Window <os_window>`, and *kitty windows*. An OS Window consists of one or more kitty
|
|
|
|
:term:`tabs <tab>`. Each tab in turn consists of one or more *kitty
|
|
|
|
windows* organized in a :term:`layout`.
|
|
|
|
|
|
|
|
overlay
|
|
|
|
An *overlay window* is a :term:`kitty window <window>` that is placed on
|
|
|
|
top of an existing kitty window, entirely covering it. Overlays are used
|
2022-08-04 02:52:00 +03:00
|
|
|
throughout kitty, for example, to display the :ref:`the scrollback buffer <scrollback>`,
|
2021-07-17 04:06:56 +03:00
|
|
|
to display :doc:`hints </kittens/hints>`, for :doc:`unicode input
|
2021-12-10 12:30:51 +03:00
|
|
|
</kittens/unicode_input>` etc.
|
2021-07-20 10:49:23 +03:00
|
|
|
|
2021-07-21 08:05:58 +03:00
|
|
|
hyperlinks
|
|
|
|
Terminals can have hyperlinks, just like the internet. In kitty you can
|
|
|
|
:doc:`control exactly what happens <open_actions>` when clicking on a
|
2022-04-27 10:58:20 +03:00
|
|
|
hyperlink, based on the type of link and its URL. See also `Hyperlinks in terminal
|
|
|
|
emulators <https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda>`__.
|
2021-07-21 08:05:58 +03:00
|
|
|
|
2021-07-20 10:51:45 +03:00
|
|
|
.. _env_vars:
|
2021-07-20 10:49:23 +03:00
|
|
|
|
|
|
|
Environment variables
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
Variables that influence kitty behavior
|
2022-04-24 12:18:31 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-07-20 10:49:23 +03:00
|
|
|
|
|
|
|
.. envvar:: KITTY_CONFIG_DIRECTORY
|
|
|
|
|
|
|
|
Controls where kitty looks for :file:`kitty.conf` and other configuration
|
|
|
|
files. Defaults to :file:`~/.config/kitty`. For full details of the config
|
|
|
|
directory lookup mechanism see, :option:`kitty --config`.
|
|
|
|
|
2021-08-18 05:19:54 +03:00
|
|
|
.. envvar:: KITTY_CACHE_DIRECTORY
|
|
|
|
|
|
|
|
Controls where kitty stores cache files. Defaults to :file:`~/.cache/kitty`
|
|
|
|
or :file:`~/Library/Caches/kitty` on macOS.
|
2021-07-20 10:49:23 +03:00
|
|
|
|
2022-03-10 10:20:59 +03:00
|
|
|
.. envvar:: KITTY_RUNTIME_DIRECTORY
|
|
|
|
|
|
|
|
Controls where kitty stores runtime files like sockets. Defaults to
|
|
|
|
the :code:`XDG_RUNTIME_DIR` environment variable if that is defined
|
|
|
|
otherwise the run directory inside the kitty cache directory is used.
|
|
|
|
|
2021-07-29 09:22:14 +03:00
|
|
|
.. envvar:: VISUAL
|
|
|
|
|
2022-04-30 11:55:04 +03:00
|
|
|
The terminal based text editor (such as :program:`vi` or :program:`nano`)
|
|
|
|
kitty uses, when, for instance, opening :file:`kitty.conf` in response to
|
|
|
|
:sc:`edit_config_file`.
|
2021-07-29 09:22:14 +03:00
|
|
|
|
|
|
|
.. envvar:: EDITOR
|
|
|
|
|
|
|
|
Same as :envvar:`VISUAL`. Used if :envvar:`VISUAL` is not set.
|
|
|
|
|
2021-08-18 05:19:54 +03:00
|
|
|
.. envvar:: GLFW_IM_MODULE
|
|
|
|
|
|
|
|
Set this to ``ibus`` to enable support for IME under X11.
|
|
|
|
|
2021-08-18 05:46:09 +03:00
|
|
|
.. envvar:: KITTY_WAYLAND_DETECT_MODIFIERS
|
|
|
|
|
2021-08-18 06:01:49 +03:00
|
|
|
When set to a non-empty value, kitty attempts to autodiscover XKB modifiers
|
|
|
|
under Wayland. This is useful if using non-standard modifers like hyper. It
|
|
|
|
is possible for the autodiscovery to fail; the default Wayland XKB mappings
|
|
|
|
are used in this case. See :pull:`3943` for details.
|
2021-08-18 05:46:09 +03:00
|
|
|
|
2022-04-25 10:36:37 +03:00
|
|
|
.. envvar:: SSH_ASKPASS
|
|
|
|
|
|
|
|
Specify the program for SSH to ask for passwords. When this is set, :doc:`ssh
|
|
|
|
kitten </kittens/ssh>` will use this environment variable by default. See
|
|
|
|
:opt:`askpass <kitten-ssh.askpass>` for details.
|
|
|
|
|
2022-04-24 12:18:31 +03:00
|
|
|
.. envvar:: KITTY_CLONE_SOURCE_CODE
|
|
|
|
|
|
|
|
Set this to some shell code that will be executed in the cloned window with
|
|
|
|
:code:`eval` when :ref:`clone-in-kitty <clone_shell>` is used.
|
|
|
|
|
|
|
|
.. envvar:: KITTY_CLONE_SOURCE_PATH
|
|
|
|
|
|
|
|
Set this to the path of a file that will be sourced in the cloned window when
|
|
|
|
:ref:`clone-in-kitty <clone_shell>` is used.
|
|
|
|
|
2022-04-30 11:55:04 +03:00
|
|
|
.. envvar:: KITTY_DEVELOP_FROM
|
|
|
|
|
|
|
|
Set this to the directory path of the kitty source code and its Python code
|
|
|
|
will be loaded from there. Only works with official binary builds.
|
|
|
|
|
2021-08-18 05:19:54 +03:00
|
|
|
|
2021-07-20 10:49:23 +03:00
|
|
|
Variables that kitty sets when running child programs
|
2022-04-24 12:18:31 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-07-20 10:49:23 +03:00
|
|
|
|
2021-08-05 03:59:21 +03:00
|
|
|
.. envvar:: LANG
|
|
|
|
|
2022-04-24 12:18:31 +03:00
|
|
|
This is only set on macOS. If the country and language from the macOS user
|
|
|
|
settings form an invalid locale, it will be set to :code:`en_US.UTF-8`.
|
2021-08-05 03:59:21 +03:00
|
|
|
|
2022-04-27 10:58:20 +03:00
|
|
|
|
2022-04-25 10:36:51 +03:00
|
|
|
.. envvar:: PATH
|
|
|
|
|
|
|
|
kitty prepends itself to the PATH of its own environment to ensure the
|
|
|
|
functions calling :program:`kitty` will work properly.
|
2021-08-05 03:59:21 +03:00
|
|
|
|
2022-04-27 10:58:20 +03:00
|
|
|
|
2021-07-20 10:49:23 +03:00
|
|
|
.. envvar:: KITTY_WINDOW_ID
|
|
|
|
|
|
|
|
An integer that is the id for the kitty :term:`window` the program is running in.
|
|
|
|
Can be used with the :doc:`kitty remote control facility <remote-control>`.
|
|
|
|
|
|
|
|
|
2021-08-07 14:15:12 +03:00
|
|
|
.. envvar:: KITTY_PID
|
|
|
|
|
|
|
|
An integer that is the process id for the kitty process in which the program
|
|
|
|
is running. Allows programs to tell kitty to reload its config by sending it
|
|
|
|
the SIGUSR1 signal.
|
|
|
|
|
|
|
|
|
2022-06-23 05:31:34 +03:00
|
|
|
.. envvar:: KITTY_PREWARM_SOCKET
|
|
|
|
|
|
|
|
Path to a UNIX domain socket used to avoid Python interpreter startup
|
2022-08-02 06:08:07 +03:00
|
|
|
latency when running kittens, or remote control or using kitty +launch or kitty +runpy.
|
2022-06-23 05:31:34 +03:00
|
|
|
|
|
|
|
|
2022-08-02 06:08:07 +03:00
|
|
|
.. envvar:: KITTY_PREWARM_SOCKET_REAL_TTY
|
|
|
|
|
|
|
|
Path to the the PTY used to run the prewarmed process in when using
|
|
|
|
:envvar:`KITTY_PREWARM_SOCKET`.
|
|
|
|
|
2021-07-20 10:49:23 +03:00
|
|
|
.. envvar:: WINDOWID
|
|
|
|
|
|
|
|
The id for the :term:`OS Window <os_window>` the program is running in. Only available
|
|
|
|
on platforms that have ids for their windows, such as X11 and macOS.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: TERM
|
|
|
|
|
|
|
|
The name of the terminal, defaults to ``xterm-kitty``. See :opt:`term`.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: TERMINFO
|
|
|
|
|
|
|
|
Path to a directory containing the kitty terminfo database.
|
|
|
|
|
|
|
|
|
2021-11-08 09:07:50 +03:00
|
|
|
.. envvar:: KITTY_INSTALLATION_DIR
|
|
|
|
|
|
|
|
Path to the kitty installation directory.
|
|
|
|
|
|
|
|
|
2021-07-20 10:49:23 +03:00
|
|
|
.. envvar:: COLORTERM
|
|
|
|
|
|
|
|
Set to the value ``truecolor`` to indicate that kitty supports 16 million
|
|
|
|
colors.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: KITTY_LISTEN_ON
|
|
|
|
|
|
|
|
Set when the :doc:`remote control <remote-control>` facility is enabled and
|
|
|
|
the a socket is used for control via :option:`kitty --listen-on` or :opt:`listen_on`.
|
2022-04-24 12:18:31 +03:00
|
|
|
Contains the path to the socket. Avoid the need to use :option:`kitty @ --to` when
|
2021-07-20 10:49:23 +03:00
|
|
|
issuing remote control commands.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: KITTY_PIPE_DATA
|
|
|
|
|
|
|
|
Set to data describing the layout of the screen when running child
|
|
|
|
programs using :option:`launch --stdin-source` with the contents of the
|
|
|
|
screen/scrollback piped to them.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: KITTY_CHILD_CMDLINE
|
|
|
|
|
|
|
|
Set to the command line of the child process running in the kitty
|
|
|
|
window when calling the notification callback program on terminal bell, see
|
|
|
|
:opt:`command_on_bell`.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: KITTY_COMMON_OPTS
|
|
|
|
|
|
|
|
Set with the values of some common kitty options when running
|
2022-04-24 12:18:31 +03:00
|
|
|
kittens, so kittens can use them without needing to load :file:`kitty.conf`.
|
2021-07-20 16:29:48 +03:00
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: KITTY_SHELL_INTEGRATION
|
|
|
|
|
2021-11-08 09:07:50 +03:00
|
|
|
Set when enabling :ref:`shell_integration`. It is automatically removed by
|
|
|
|
the shell integration scripts.
|
2022-04-30 11:54:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: ZDOTDIR
|
|
|
|
|
|
|
|
Set when enabling :ref:`shell_integration` with :program:`zsh`, allowing
|
|
|
|
:program:`zsh` to automatically load the integration script.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: XDG_DATA_DIRS
|
|
|
|
|
|
|
|
Set when enabling :ref:`shell_integration` with :program:`fish`, allowing
|
|
|
|
:program:`fish` to automatically load the integration script.
|
|
|
|
|
|
|
|
|
|
|
|
.. envvar:: ENV
|
|
|
|
|
|
|
|
Set when enabling :ref:`shell_integration` with :program:`bash`, allowing
|
|
|
|
:program:`bash` to automatically load the integration script.
|