kitten-@-resize-os-window(1)
π
kitten-@-resize-os-window β the kitten @ manual, bestie edition β¨
okay so this is the page for kitten-@-resize-os-window from the kitten Manual, and it's literally all about moving your OS windows around like the main character you are π
πΈ Name
kitten-@-resize-os-window β resize / show / hide / etc. the OS Windows you pick, no cap πͺβ¨
π Usage
kitten @ resize-os-window [OS Panel settings ...]
that's it. that's the whole vibe check. π«Ά
π¦ Description
So you wanna resize (or do other lil operations) on the specified OS Windows? slay, this is your girl π
β οΈ heads up bestie: some window managers/environments do not allow applications to resize their windows. tiling window managers, i'm looking at you π
if you wanna modify OS Panels that were created with the panel kitten, use --action=os-panel π Specify the modifications in the same syntax the panel kitten uses, just without the leading dashes. And use the --incremental option to only change the specified panel settings β¨
for example, moving the panel to the bottom edge and making it two lines tall:
--action=os-panel --incremental lines=2 edge=bottom
iconic, honestly π₯
β¨ Options β¨
--match,-mβ which window you're matching, bestie π
Match specifications look like this: field:query. The field can be one of: id, title, pid, cwd, cmdline, num, env, var, state, neighbor, session and recent. The query is the expression to match. Expressions can be either a number or a regular expression, and can be combined using Boolean operators π
The special value all matches all windows π
For the numeric fields: id, pid, num and recent, the expression is interpreted as a number, not a regular expression. Negative values for id match from the highest id number down, so in particular, -1 is the most recently created window β
The field num refers to the window position in the current tab, starting from zero and counting clockwise (this is the same as the order in which the windows are reported by the kitten @ ls command) π
The window id of the current window is available as the KITTY_WINDOW_ID environment variable π·οΈ
The field recent refers to recently active windows in the currently active tab β with zero being the currently active window, one being the previously active window, and so on π«
The field neighbor refers to 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 using the env field to match on environment variables, you can specify only 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, 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 is the window to which keyboard events are delivered. 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 πͺ
ngl, you can use the kitten @ ls command to get a list of windows if you need a cheat sheet π
--action [=resize]β the action to perform π¬
Choices: resize, hide, os-panel, show, toggle-fullscreen, toggle-maximized, toggle-visibility
--unit [=cells]β the unit in which to interpret specified sizes π
Choices: cells, pixels
--width [=0]β change the width of the window. Zero leaves the width unchanged π«Ά--height [=0]β change the height of the window. Zero leaves the height unchanged π«Ά--incremental [=no]β treat the specified sizes as increments on the existing window size instead of absolute sizes. When using--action=os-panel, only the specified settings are changed; otherwise, non-specified settings keep their current value β¨--self [=no]β resize the window this command is run in, rather than the active window π--no-response [=no]β don't wait for a response indicating the success of the action.
β οΈ note that using this option means you will not be notified of failures. fr fr, you're flying blind, bestie π
--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 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 will 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 to always or never use the supplied password. If set toalwaysand no password is provided, the blank password is used π
Choices: if-available, always, never
and that's the whole page, periodt π β¨
kisses from version 0.49.2, dated Oct 01, 2026 β kitten-@-resize-os-window(1), out π«Άπ
π¦ 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