launch [options] [program-to-run ...]
Launch an arbitrary program in a new kitty window/tab. Note that
if you specify a program-to-run you can use the special placeholder
@selection which will be replaced by the current selection.
- --title <WINDOW_TITLE>, --window-title <WINDOW_TITLE>#
The title to set for the new window. By default, title is controlled by the child process. The special value
currentwill copy the title from the currently active window.
- --tab-title <TAB_TITLE>#
The title for the new tab if launching in a new tab. By default, the title of the active window in the tab is used as the tab title. The special value
currentwill copy the title from the title of the currently active tab.
- --type <TYPE>#
Where to launch the child process:
A new kitty window in the current tab
A new tab in the current OS window
A new operating system window
An overlay window covering the current active kitty window
An overlay window covering the current active kitty window. Unlike a plain overlay window, this window is considered as a main window which means it is used as the active window for getting the current working directory, the input text for kittens, launch commands, etc. Useful if this overlay is intended to run for a long time as a primary window.
The process will be run in the background, without a kitty window.
These two are meant to work with
--stdin-sourceto copy data to the system clipboard or primary selection.
- --dont-take-focus, --keep-focus#
Keep the focus on the currently active window instead of switching to the newly opened window.
- --cwd <CWD>#
The working directory for the newly launched child. Use the special value
currentto use the working directory of the currently active window. The special value
last_reporteduses the last working directory reported by the shell (needs Shell integration to work). The special value
currentbut uses the working directory of the oldest foreground process associated with the currently active window rather than the newest foreground process. Finally, the special value
rootrefers to the process that was originally started when the window was created.
- --env <ENV>#
Environment variables to set in the child process. Can be specified multiple times to set different environment variables. Syntax:
name=will set to empty string and just
namewill remove the environment variable.
Keep the window open even after the command being executed exits.
Set the colors of the newly created window to be the same as the colors in the currently active window.
Ignore any specified command line and instead use the command line from the currently active window.
Copy the environment variables from the currently active window into the newly launched child process. Note that this only copies the environment when the window was first created, as it is not possible to get updated environment variables from arbitrary processes. To copy that environment, use either the clone-in-kitty feature or the kitty remote control feature with
kitty @ launch --copy-env.
- --location <LOCATION>#
Where to place the newly created window when it is added to a tab which already has existing windows in it.
beforeplace the new window before or after the active window.
neighboris a synonym for
after. Also applies to creating a new tab, where the value of
afterwill cause the new tab to be placed next to the current tab instead of at the end. The values of
splitare only used by the
splitslayout and control if the new window is placed in a vertical, horizontal or automatic split with the currently active window. The default is to place the window in a layout dependent manner, typically, after the currently active window. Default:
Programs running in this window can control kitty (even if remote control is not enabled in
kitty.conf). Note that any program with the right level of permissions can still write to the pipes of any other program on the same computer and therefore can control kitty. It can, however, be useful to block programs running on other computers (for example, over SSH) or as other users. See
--remote-control-passwordfor ways to restrict actions allowed by remote control.
- --remote-control-password <REMOTE_CONTROL_PASSWORD>#
--remote-control-password '"my passphrase" get-* set-colors'
This password will be in effect for this window only. Note that any passwords you have defined for
kitty.confare also in effect. You can override them by using the same password here. You can also disable all
remote_control_passwordglobal passwords for this window, by using:
This option only takes effect if
--allow-remote-controlis also specified. Can be specified multiple times to create multiple passwords. This option was added to kitty in version 0.26.0
- --stdin-source <STDIN_SOURCE>#
Pass the screen contents as
STDINto the child process.
is the currently selected text.
is the contents of the currently active window.
is the same as
@screen, but includes the scrollback buffer as well.
is the secondary screen of the current active window. For example if you run a full screen terminal application, the secondary screen will be the screen you return to when quitting the application.
is the output from the first command run in the shell on screen.
is the output from the last command run in the shell.
--stdin-sourceadd formatting escape codes, without this only plain text will be sent.
--stdin-sourceadd a carriage return at every line wrap location (where long lines are wrapped at screen edges). This is useful if you want to pipe to program that wants to duplicate the screen layout of the screen.
- --marker <MARKER>#
- --os-window-class <OS_WINDOW_CLASS>#
Set the WM_CLASS property on X11 and the application id property on Wayland for the newly created OS window when using
--type=os-window. Defaults to whatever is used by the parent kitty process, which in turn defaults to
- --os-window-name <OS_WINDOW_NAME>#
- --os-window-title <OS_WINDOW_TITLE>#
Set the title for the newly created OS window. This title will override any titles set by programs running in kitty. The special value
currentwill use the title of the current OS window, if any.
- --logo <LOGO>#
Path to a PNG image to use as the logo for the newly created window. See
window_logo_path. Relative paths are resolved from the kitty configuration directory.
- --logo-position <LOGO_POSITION>#
- --logo-alpha <LOGO_ALPHA>#
- --color <COLOR>#
Change colors in the newly launched window. You can either specify a path to a
.conffile with the same syntax as
kitty.confto read the colors from, or specify them individually, for example:
--color background=white --color foreground=red
- --spacing <SPACING>#
Set the margin and padding for the newly created window. For example:
margin-h=30. The shorthand form sets all values, the
*-vvariants set horizontal and vertical values. Can be specified multiple times. Note that this is ignored for overlay windows as these use the settings from the base window.
- --watcher <WATCHER>, -w <WATCHER>#
Path to a Python file. Appropriately named functions in this file will be called for various events, such as when the window is resized, focused or closed. See the section on watchers in the launch command documentation: Watching launched windows. Relative paths are resolved relative to the kitty config directory. Global watchers for all windows can be specified with