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 like field:query. The field can be one of: id, title, pid, cwd, cmdline, num, env, var, state, neighbor, session and recent. And query is 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 🧭 if horizontal, it makes the window wider or narrower by the specified increment. If vertical, it makes the window taller or shorter by the specified increment. The special value reset resets 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-on option or the listen_on setting in kitty.conf. If it's not specified, the environment variable KITTY_LISTEN_ON is 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 in kitty.conf. To use a blank password, specify --use-password as always 🫧
  • --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. Use fd:num to read from the file descriptor num. Used if no --password is supplied. Defaults to checking for the rc-pass file 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-file is supplied. Defaults to checking the environment variable KITTY_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 to always or never use the supplied password ⚑ if set to always and 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