kitten-@-set...round-opacity(1)
π kitten @ set-background-opacity β like, the vibes command for window transparency
okay so this is a page from the kitten Manual, bestie β the kitten @ set-background-opacity(1) one, and it's literally the glow-up button for your windows. Let's get into it π«Ά
β¨ Name
kitten-@-set-background-opacity β Set the background opacity π₯
π Usage
kitten @ set-background-opacity OPACITY
π¦ Description
So basically: this sets the background opacity for the windows you specify. The way it only works is if you've turned on dynamic_background_opacity in kitty.conf β no cap, if that's not on, this command is just gonna sit there looking cute and doing nothing π
Also important: the background opacity affects all kitty windows in a single OS window. Like, it's a whole-OS-window vibe, not a per-pane vibe. πͺ
Example, because we love a visual:
kitten @ set-background-opacity 0.5
πΈ Options
--all,-a[=no] β so by default, background opacity only gets changed for the currently active OS window. This option makes the background opacity change happen in all windows instead. slay β¨--toggle[=no] β when you specify this, the background opacity for the matching OS windows gets reset to default if it's currently equal to the specified value; otherwise it gets set to the specified value. it's giving light switch energy π--match,-mβ the window to match, bestie. Match specs look likefield:query.fieldcan be one of:id,title,pid,cwd,cmdline,num,env,var,state,neighbor,sessionandrecent. Andqueryis the expression to match β expressions can be a number or a regular expression, and you can combine them with Boolean operators π§
The special value all matches all windows. periodt.
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; 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 (same 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 refers to recently active windows in the currently active tab β zero is the currently active window, one is 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, . 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 a value β like env:MY_ENV_VAR=2, for example.
Similarly, the var field matches on user variables set on the window. You can specify a name, or a name and value, just like 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's only one focused window, and it's the window that 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. And the value overlay_parent matches the window that's under the self window, when the self window is an overlay. π
Note that you can use the kitten @ ls command to get a list of windows. super handy, fr fr.
--match-tab,-tβ the tab to match. Match specs are of the formfield:query, wherefieldcan be one of:id,index,title,window_id,window_title,pid,cwd,cmdline,env,var,state,sessionandrecent.queryis the expression to match β a number or a regular expression, combinable with Boolean operators. π
The special value all matches all tabs. π―
For numeric fields β id, index, window_id, pid and recent β the expression is interpreted as a number, not a regular expression. Negative values for id/window_id match from the highest id number down; in particular, -1 is the most recently created tab/window.
When you use title or id, first a matching tab is looked for, and if that's not found a matching window is looked for, and the tab for that window is used. sneaky but iconic.
You can also use window_id and window_title to match the tab that contains the window with the specified id or title. πͺ
The index number is used to match the nth tab in the currently active OS window. The recent number matches recently active tabs in the currently active OS window β zero being the currently active tab, one the previously active tab, and so on.
The field session matches tabs that were created in the specified session. Use the expression ^$ to match windows that were not created in a session, . 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 just the environment variable name, or a name and value β like env:MY_ENV_VAR=2. Tabs containing any window with the specified environment variables are matched. Similarly, var matches tabs containing any window with the specified user variable. π
The field state matches on the state of the tab. Supported states are: active, focused, needs_attention, parent_active, parent_focused and focused_os_window. Active tabs are the tabs that are active in their parent OS window. There's only one focused tab, and it's the tab that keyboard events get delivered to β if no tab is focused, the last focused tab is matched. The value focused_os_window matches all tabs in the currently focused OS window.
Note that you can use the kitten @ ls command to get a list of tabs. yw π
--help,-h[=no] β Show help for this command. the classic.
π 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 get 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 makes kitty 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 force it to always or never use the supplied password. If it's set toalwaysand no password is provided, the blank password is used. β‘
Choices: if-available, always, never
ok that's literally the whole page, bestie π«Ά go forth and make your windows translucent, no cap π
and finally, the cute little sign-off at the bottom: this is from version 0.49.2, dated Oct 01, 2026 β the kitten-@-set-background-opacity(1) page, mwah π
β¨π
π¦ 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