kitten-@-action(1)

✨ kitten-@-action πŸ’…

okay so bestie, welcome to kitten-@-action β€” part of the kitten manual crew, and honestly? it's giving "tiny command, main character energy". πŸŽ€ this is the lil remote-control spell that makes kitty do stuff.


🌸 USAGE 🌸

kitten @ action  ACTION [ARGS FOR ACTION...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so literally what this does is run the specified mappable action. that's it. that's the vibe. ✨

want the full menu of every mappable action that exists? go peek at actions, iykyk. πŸ‘‘

any arguments for ACTION should follow the action β€” like, right after it, no skipping the line. 🫢 but heads up bestie: parsing of arguments is action dependent, so for best results you wanna specify all arguments as a single string on the command line, in the exact same format as you would use for that action in kitty.conf. no cap, that's the move. πŸ’–


πŸ’… OPTIONS πŸ’…

  • --self [=no] β€” run the action on the window this command is run in instead of the active window. self-care, but for windows. πŸͺž
  • --no-response [=no] β€” don't wait for a response indicating the success of the action. but lowkey be careful: using this option means you will not be notified of failures. πŸ’€ it's giving "ignorance is bliss" and honestly? risky.
  • --match, -m β€” the window to match. match specifications are of the form: field:query, where field can be one of: id, title, pid, cwd, cmdline, num, env, var, state, neighbor, session and recent. 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. periodt.

for 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 (this is the same as the order in which the windows are reported by the kitten @ ls command). clockwise!! like a little window clock. πŸ•

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. it's a whole history lesson. πŸ“š

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. iconic regex behavior tbh. 🌈

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. 😭 okay let's break it down:

  • 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. very handy, very demure.

  • --help, -h [=no] β€” show help for this command. the classic. 🫢

🌟 GLOBAL OPTIONS 🌟

these apply to everything, bestie β€” shared kitty remote-control energy. πŸ’–

  • --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 not specified, the environment variable KITTY_LISTEN_ON is checked. and if that is 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 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


🫢 friendly reminder bestie: if you pass --no-response, you're opting out of failure notifications entirely. no snitching, no warnings. you've been warned. πŸ’–

okay that's the whole page!! πŸŽ€ slay. this was kitten-@-action, version 0.49.2, dated Oct 01, 2026 β€” go forth and run your actions, icon. πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from