kitten-@-resize-window(1)
β¨ NAME β¨
okay so bestie, welcome to kitten-@-resize-window β it's a page from the kitten Manual and it's literally the remote-control command that resizes the windows you tell it to π
π USAGE π
kitten @ resize-window
π¦ DESCRIPTION π¦
So here's the tea: this bad boy resizes the windows you specify in the current layout β¨ that's the whole vibe.
but bestie, listen β > not all layouts can resize all windows in all directions. it's giving "it depends" and we respect the boundaries π
π OPTIONS π
--match,-mβ the window you wanna match, obvs. Match specs look likefield:query. Thefieldcan be one of:id,title,pid,cwd,cmdline,num,env,var,state,neighbor,sessionandrecent. Andqueryis the expression you're matching against. Expressions can be either a number or a regular expression, and you can combine them with Boolean operators π§
the special value all matches, you guessed it, all windows π
for the numeric fields: id, pid, num and recent, the expression gets interpreted as a number, not a regex. Negative values for id match from the highest id number down β and in particular, -1 is the most recently created window π«Ά
the field num = the window position in the current tab, starting from zero and counting clockwise (this is the same as the order the windows get reported by the kitten @ ls command, iykyk)
the window id of the current window is available as the KITTY_WINDOW_ID environment variable π―
the field recent = recently active windows in the currently active tab, where zero is the currently active window, one is the previously active window, and so on π«
the field neighbor = a neighbor of the active window in the specified direction, which can be: left, right, top or bottom π
the field session matches windows that were created in the specified session. Use the expression ^$ to match windows that were not created in a session, and . to match the currently active session, and ~ to match either the currently active session or the last active session when no session is active π
when you're using the env field to match on environment variables, you can specify just the environment variable name, or a name and value, for example, env:MY_ENV_VAR=2 β¨
similarly, the var field matches on user variables set on the window. You can specify name or name and value, same as with the env field π
the field state matches on the state of the window. Supported states are: active, focused, needs_attention, parent_active, parent_focused, focused_os_window, self, overlay_parent. Active windows are the windows that are active in their parent tab. There is only one focused window and it's the window keyboard events get delivered to. If no window is focused, the last focused window is matched. The value focused_os_window matches all windows in the currently focused OS window. The value self matches the window in which the remote control command is run. The value overlay_parent matches the window that is under the self window, when the self window is an overlay π
lowkey a reminder: you can use the kitten @ ls command to get a list of windows π
--increment,-i [=2]β how many cells to change the size by ποΈ can be negative to decrease the size. math is math, bestie.--axis,-a [=horizontal]β the axis you're resizing along π§ ifhorizontal, it makes the window wider or narrower by the specified increment. Ifvertical, it makes the window taller or shorter by the specified increment. The special valueresetresets the layout to its default configuration π
Choices: horizontal, reset, vertical
--self [=no]β resize the window this command is run in, rather than the active window πͺ main character energy, honestly.--help,-h [=no]β show help for this command π¬
πΈ GLOBAL OPTIONS πΈ
--toβ an address for the kitty instance to control π corresponds to the address given to the kitty instance via the--listen-onoption or thelisten_onsetting inkitty.conf. If it's not specified, the environment variableKITTY_LISTEN_ONis checked. If that's also not found, messages are sent to the controlling terminal for this process β i.e. they'll only work if this process is run within a kitty window πͺ--passwordβ a password to use when contacting kitty π this will cause kitty to ask the user for permission to perform the specified action, unless the password has been accepted before or is pre-configured inkitty.conf. To use a blank password, specify--use-passwordasalwaysπ«§--password-file [=rc-pass]β a file from which to read the password π trailing whitespace is ignored. Relative paths are resolved from the kitty configuration directory. Use-to read from STDIN. Usefd:numto read from the file descriptornum. Used if no--passwordis supplied. Defaults to checking for therc-passfile in the kitty configuration directory ποΈ--password-env [=KITTY_RC_PASSWORD]β the name of an environment variable to read the password from π± used if no--password-fileis supplied. Defaults to checking the environment variableKITTY_RC_PASSWORDπ·οΈ--use-password [=if-available]β if no password is available, kitty will usually just send the remote control command without a password. This option can be used to force it toalwaysorneveruse the supplied password β‘ if set toalwaysand no password is provided, the blank password is used π
Choices: if-available, always, never
okay that's the whole page, slay π
this was kitten-@-resize-window(1) from the kitten Manual β version 0.49.2, dated Oct 01, 2026 π go resize something iconic, bestie π¦β¨π
π¦ where this page comes from
- arch rolling: kitty 0.49.2-1 Β· GPL-3.0-only
- nixpkgs unstable: kitty-bin 0.49.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms