this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wip: configuring kitty

+2269
+3
kitty/README.md
··· 1 + # kitty terminal config 2 + 3 + App icon is from [kitty-icon](https://github.com/DinkDonk/kitty-icon)
kitty/kitty-dark.icns

This is a binary file and will not be displayed.

kitty/kitty-light.icns

This is a binary file and will not be displayed.

kitty/kitty.app.icns

This is a binary file and will not be displayed.

+2266
kitty/kitty.conf
··· 1 + # vim:fileencoding=utf-8:foldmethod=marker 2 + 3 + #: Fonts {{{ 4 + 5 + #: kitty has very powerful font management. You can configure 6 + #: individual font faces and even specify special fonts for particular 7 + #: characters. 8 + 9 + font_family Fira Code 10 + bold_font Fira Code Bold 11 + italic_font auto 12 + bold_italic_font auto 13 + 14 + #: You can specify different fonts for the bold/italic/bold-italic 15 + #: variants. To get a full list of supported fonts use the `kitty 16 + #: +list-fonts` command. By default they are derived automatically, by 17 + #: the OSes font system. When bold_font or bold_italic_font is set to 18 + #: auto on macOS, the priority of bold fonts is semi-bold, bold, 19 + #: heavy. Setting them manually is useful for font families that have 20 + #: many weight variants like Book, Medium, Thick, etc. For example:: 21 + 22 + #: font_family Operator Mono Book 23 + #: bold_font Operator Mono Medium 24 + #: italic_font Operator Mono Book Italic 25 + #: bold_italic_font Operator Mono Medium Italic 26 + 27 + font_size 16.0 28 + 29 + #: Font size (in pts) 30 + 31 + # force_ltr no 32 + 33 + #: kitty does not support BIDI (bidirectional text), however, for RTL 34 + #: scripts, words are automatically displayed in RTL. That is to say, 35 + #: in an RTL script, the words "HELLO WORLD" display in kitty as 36 + #: "WORLD HELLO", and if you try to select a substring of an RTL- 37 + #: shaped string, you will get the character that would be there had 38 + #: the the string been LTR. For example, assuming the Hebrew word 39 + #: ירושלים, selecting the character that on the screen appears to be ם 40 + #: actually writes into the selection buffer the character י. kitty's 41 + #: default behavior is useful in conjunction with a filter to reverse 42 + #: the word order, however, if you wish to manipulate RTL glyphs, it 43 + #: can be very challenging to work with, so this option is provided to 44 + #: turn it off. Furthermore, this option can be used with the command 45 + #: line program GNU FriBidi 46 + #: <https://github.com/fribidi/fribidi#executable> to get BIDI 47 + #: support, because it will force kitty to always treat the text as 48 + #: LTR, which FriBidi expects for terminals. 49 + 50 + # - Use additional nerd symbols 51 + # See https://github.com/be5invis/Iosevka/issues/248 52 + # See https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points 53 + # Seti-UI + Custom 54 + symbol_map U+E5FA-U+E62B Symbols Nerd Font 55 + # Devicons 56 + symbol_map U+E700-U+E7C5 Symbols Nerd Font 57 + # Font Awesome 58 + symbol_map U+F000-U+F2E0 Symbols Nerd Font 59 + # Font Awesome Extension 60 + symbol_map U+E200-U+E2A9 Symbols Nerd Font 61 + # Material Design Icons 62 + symbol_map U+F500-U+FD46 Symbols Nerd Font 63 + # Weather 64 + symbol_map U+E300-U+E3EB Symbols Nerd Font 65 + # Octicons 66 + symbol_map U+F400-U+F4A8,U+2665,U+26A1,U+F27C Symbols Nerd Font 67 + # Powerline Extra Symbols 68 + symbol_map U+E0A3,U+E0B4-U+E0C8,U+E0CC-U+E0D2,U+E0D4 Symbols Nerd Font 69 + # IEC Power Symbols 70 + symbol_map U+23FB-U+23FE,U+2b58 Symbols Nerd Font 71 + # Font Logos 72 + symbol_map U+F300-U+F313 Symbols Nerd Font 73 + # Pomicons 74 + symbol_map U+E000-U+E00D Symbols Nerd Font 75 + 76 + #: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols 77 + 78 + #: Map the specified Unicode codepoints to a particular font. Useful 79 + #: if you need special rendering for some symbols, such as for 80 + #: Powerline. Avoids the need for patched fonts. Each Unicode code 81 + #: point is specified in the form `U+<code point in hexadecimal>`. You 82 + #: can specify multiple code points, separated by commas and ranges 83 + #: separated by hyphens. This option can be specified multiple times. 84 + #: The syntax is:: 85 + 86 + #: symbol_map codepoints Font Family Name 87 + 88 + # narrow_symbols 89 + 90 + #: E.g. narrow_symbols U+E0A0-U+E0A3,U+E0C0-U+E0C7 1 91 + 92 + #: Usually, for Private Use Unicode characters and some symbol/dingbat 93 + #: characters, if the character is followed by one or more spaces, 94 + #: kitty will use those extra cells to render the character larger, if 95 + #: the character in the font has a wide aspect ratio. Using this 96 + #: option you can force kitty to restrict the specified code points to 97 + #: render in the specified number of cells (defaulting to one cell). 98 + #: This option can be specified multiple times. The syntax is:: 99 + 100 + #: narrow_symbols codepoints [optionally the number of cells] 101 + 102 + # disable_ligatures never 103 + 104 + #: Choose how you want to handle multi-character ligatures. The 105 + #: default is to always render them. You can tell kitty to not render 106 + #: them when the cursor is over them by using cursor to make editing 107 + #: easier, or have kitty never render them at all by using always, if 108 + #: you don't like them. The ligature strategy can be set per-window 109 + #: either using the kitty remote control facility or by defining 110 + #: shortcuts for it in kitty.conf, for example:: 111 + 112 + #: map alt+1 disable_ligatures_in active always 113 + #: map alt+2 disable_ligatures_in all never 114 + #: map alt+3 disable_ligatures_in tab cursor 115 + 116 + #: Note that this refers to programming ligatures, typically 117 + #: implemented using the calt OpenType feature. For disabling general 118 + #: ligatures, use the font_features option. 119 + 120 + font_features FiraCode-Retina +zero +ss06 121 + 122 + #: E.g. font_features none 123 + 124 + #: Choose exactly which OpenType features to enable or disable. This 125 + #: is useful as some fonts might have features worthwhile in a 126 + #: terminal. For example, Fira Code includes a discretionary feature, 127 + #: zero, which in that font changes the appearance of the zero (0), to 128 + #: make it more easily distinguishable from Ø. Fira Code also includes 129 + #: other discretionary features known as Stylistic Sets which have the 130 + #: tags ss01 through ss20. 131 + 132 + #: For the exact syntax to use for individual features, see the 133 + #: HarfBuzz documentation <https://harfbuzz.github.io/harfbuzz-hb- 134 + #: common.html#hb-feature-from-string>. 135 + 136 + #: Note that this code is indexed by PostScript name, and not the font 137 + #: family. This allows you to define very precise feature settings; 138 + #: e.g. you can disable a feature in the italic font but not in the 139 + #: regular font. 140 + 141 + #: On Linux, font features are first read from the FontConfig database 142 + #: and then this option is applied, so they can be configured in a 143 + #: single, central place. 144 + 145 + #: To get the PostScript name for a font, use `kitty +list-fonts 146 + #: --psnames`: 147 + 148 + #: .. code-block:: sh 149 + 150 + #: $ kitty +list-fonts --psnames | grep Fira 151 + #: Fira Code 152 + #: Fira Code Bold (FiraCode-Bold) 153 + #: Fira Code Light (FiraCode-Light) 154 + #: Fira Code Medium (FiraCode-Medium) 155 + #: Fira Code Regular (FiraCode-Regular) 156 + #: Fira Code Retina (FiraCode-Retina) 157 + 158 + #: The part in brackets is the PostScript name. 159 + 160 + #: Enable alternate zero and oldstyle numerals:: 161 + 162 + #: font_features FiraCode-Retina +zero +onum 163 + 164 + #: Enable only alternate zero in the bold font:: 165 + 166 + #: font_features FiraCode-Bold +zero 167 + 168 + #: Disable the normal ligatures, but keep the calt feature which (in 169 + #: this font) breaks up monotony:: 170 + 171 + #: font_features TT2020StyleB-Regular -liga +calt 172 + 173 + #: In conjunction with force_ltr, you may want to disable Arabic 174 + #: shaping entirely, and only look at their isolated forms if they 175 + #: show up in a document. You can do this with e.g.:: 176 + 177 + #: font_features UnifontMedium +isol -medi -fina -init 178 + 179 + modify_font cell_height 100% 180 + # modify_font baseline 3.5 181 + 182 + #: Modify font characteristics such as the position or thickness of 183 + #: the underline and strikethrough. The modifications can have the 184 + #: suffix px for pixels or % for percentage of original value. No 185 + #: suffix means use pts. For example:: 186 + 187 + #: modify_font underline_position -2 188 + #: modify_font underline_thickness 150% 189 + #: modify_font strikethrough_position 2px 190 + 191 + #: Additionally, you can modify the size of the cell in which each 192 + #: font glyph is rendered and the baseline at which the glyph is 193 + #: placed in the cell. For example:: 194 + 195 + #: modify_font cell_width 80% 196 + #: modify_font cell_height -2px 197 + #: modify_font baseline 3 198 + 199 + #: Note that modifying the baseline will automatically adjust the 200 + #: underline and strikethrough positions by the same amount. 201 + #: Increasing the baseline raises glyphs inside the cell and 202 + #: decreasing it lowers them. Decreasing the cell size might cause 203 + #: rendering artifacts, so use with care. 204 + 205 + # box_drawing_scale 0.001, 1, 1.5, 2 206 + 207 + #: The sizes of the lines used for the box drawing Unicode characters. 208 + #: These values are in pts. They will be scaled by the monitor DPI to 209 + #: arrive at a pixel value. There must be four values corresponding to 210 + #: thin, normal, thick, and very thick lines. 211 + 212 + #: }}} 213 + 214 + #: Cursor customization {{{ 215 + 216 + # cursor #cccccc 217 + 218 + #: Default cursor color. If set to the special value none the cursor 219 + #: will be rendered with a "reverse video" effect. It's color will be 220 + #: the color of the text in the cell it is over and the text will be 221 + #: rendered with the background color of the cell. Note that if the 222 + #: program running in the terminal sets a cursor color, this takes 223 + #: precedence. Also, the cursor colors are modified if the cell 224 + #: background and foreground colors have very low contrast. 225 + 226 + # cursor_text_color #111111 227 + 228 + #: The color of text under the cursor. If you want it rendered with 229 + #: the background color of the cell underneath instead, use the 230 + #: special keyword: background. Note that if cursor is set to none 231 + #: then this option is ignored. 232 + 233 + # cursor_shape block 234 + 235 + #: The cursor shape can be one of block, beam, underline. Note that 236 + #: when reloading the config this will be changed only if the cursor 237 + #: shape has not been set by the program running in the terminal. This 238 + #: sets the default cursor shape, applications running in the terminal 239 + #: can override it. In particular, shell integration 240 + #: <https://sw.kovidgoyal.net/kitty/shell-integration/> in kitty sets 241 + #: the cursor shape to beam at shell prompts. You can avoid this by 242 + #: setting shell_integration to no-cursor. 243 + 244 + # cursor_beam_thickness 1.5 245 + 246 + #: The thickness of the beam cursor (in pts). 247 + 248 + # cursor_underline_thickness 2.0 249 + 250 + #: The thickness of the underline cursor (in pts). 251 + 252 + cursor_blink_interval 0 253 + 254 + #: The interval to blink the cursor (in seconds). Set to zero to 255 + #: disable blinking. Negative values mean use system default. Note 256 + #: that the minimum interval will be limited to repaint_delay. 257 + 258 + # cursor_stop_blinking_after 15.0 259 + 260 + #: Stop blinking cursor after the specified number of seconds of 261 + #: keyboard inactivity. Set to zero to never stop blinking. 262 + 263 + #: }}} 264 + 265 + #: Scrollback {{{ 266 + 267 + # scrollback_lines 2000 268 + 269 + #: Number of lines of history to keep in memory for scrolling back. 270 + #: Memory is allocated on demand. Negative numbers are (effectively) 271 + #: infinite scrollback. Note that using very large scrollback is not 272 + #: recommended as it can slow down performance of the terminal and 273 + #: also use large amounts of RAM. Instead, consider using 274 + #: scrollback_pager_history_size. Note that on config reload if this 275 + #: is changed it will only affect newly created windows, not existing 276 + #: ones. 277 + 278 + # scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER 279 + 280 + #: Program with which to view scrollback in a new window. The 281 + #: scrollback buffer is passed as STDIN to this program. If you change 282 + #: it, make sure the program you use can handle ANSI escape sequences 283 + #: for colors and text formatting. INPUT_LINE_NUMBER in the command 284 + #: line above will be replaced by an integer representing which line 285 + #: should be at the top of the screen. Similarly CURSOR_LINE and 286 + #: CURSOR_COLUMN will be replaced by the current cursor position or 287 + #: set to 0 if there is no cursor, for example, when showing the last 288 + #: command output. 289 + 290 + # scrollback_pager_history_size 0 291 + 292 + #: Separate scrollback history size (in MB), used only for browsing 293 + #: the scrollback buffer with pager. This separate buffer is not 294 + #: available for interactive scrolling but will be piped to the pager 295 + #: program when viewing scrollback buffer in a separate window. The 296 + #: current implementation stores the data in UTF-8, so approximatively 297 + #: 10000 lines per megabyte at 100 chars per line, for pure ASCII, 298 + #: unformatted text. A value of zero or less disables this feature. 299 + #: The maximum allowed size is 4GB. Note that on config reload if this 300 + #: is changed it will only affect newly created windows, not existing 301 + #: ones. 302 + 303 + # scrollback_fill_enlarged_window no 304 + 305 + #: Fill new space with lines from the scrollback buffer after 306 + #: enlarging a window. 307 + 308 + # wheel_scroll_multiplier 5.0 309 + 310 + #: Multiplier for the number of lines scrolled by the mouse wheel. 311 + #: Note that this is only used for low precision scrolling devices, 312 + #: not for high precision scrolling devices on platforms such as macOS 313 + #: and Wayland. Use negative numbers to change scroll direction. See 314 + #: also wheel_scroll_min_lines. 315 + 316 + # wheel_scroll_min_lines 1 317 + 318 + #: The minimum number of lines scrolled by the mouse wheel. The scroll 319 + #: multiplier wheel_scroll_multiplier only takes effect after it 320 + #: reaches this number. Note that this is only used for low precision 321 + #: scrolling devices like wheel mice that scroll by very small amounts 322 + #: when using the wheel. With a negative number, the minimum number of 323 + #: lines will always be added. 324 + 325 + # touch_scroll_multiplier 1.0 326 + 327 + #: Multiplier for the number of lines scrolled by a touchpad. Note 328 + #: that this is only used for high precision scrolling devices on 329 + #: platforms such as macOS and Wayland. Use negative numbers to change 330 + #: scroll direction. 331 + 332 + #: }}} 333 + 334 + #: Mouse {{{ 335 + 336 + # mouse_hide_wait 3.0 337 + 338 + #: Hide mouse cursor after the specified number of seconds of the 339 + #: mouse not being used. Set to zero to disable mouse cursor hiding. 340 + #: Set to a negative value to hide the mouse cursor immediately when 341 + #: typing text. Disabled by default on macOS as getting it to work 342 + #: robustly with the ever-changing sea of bugs that is Cocoa is too 343 + #: much effort. 344 + 345 + # url_color #0087bd 346 + # url_style curly 347 + 348 + #: The color and style for highlighting URLs on mouse-over. url_style 349 + #: can be one of: none, straight, double, curly, dotted, dashed. 350 + 351 + # open_url_with default 352 + 353 + #: The program to open clicked URLs. The special value default with 354 + #: first look for any URL handlers defined via the open_actions 355 + #: <https://sw.kovidgoyal.net/kitty/open_actions/> facility and if non 356 + #: are found, it will use the Operating System's default URL handler 357 + #: (open on macOS and xdg-open on Linux). 358 + 359 + # url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh 360 + 361 + #: The set of URL prefixes to look for when detecting a URL under the 362 + #: mouse cursor. 363 + 364 + # detect_urls yes 365 + 366 + #: Detect URLs under the mouse. Detected URLs are highlighted with an 367 + #: underline and the mouse cursor becomes a hand over them. Even if 368 + #: this option is disabled, URLs are still clickable. 369 + 370 + # url_excluded_characters 371 + 372 + #: Additional characters to be disallowed from URLs, when detecting 373 + #: URLs under the mouse cursor. By default, all characters that are 374 + #: legal in URLs are allowed. 375 + 376 + # copy_on_select no 377 + 378 + #: Copy to clipboard or a private buffer on select. With this set to 379 + #: clipboard, selecting text with the mouse will cause the text to be 380 + #: copied to clipboard. Useful on platforms such as macOS that do not 381 + #: have the concept of primary selection. You can instead specify a 382 + #: name such as a1 to copy to a private kitty buffer. Map a shortcut 383 + #: with the paste_from_buffer action to paste from this private 384 + #: buffer. For example:: 385 + 386 + #: copy_on_select a1 387 + #: map shift+cmd+v paste_from_buffer a1 388 + 389 + #: Note that copying to the clipboard is a security risk, as all 390 + #: programs, including websites open in your browser can read the 391 + #: contents of the system clipboard. 392 + 393 + # paste_actions quote-urls-at-prompt 394 + 395 + #: A comma separated list of actions to take when pasting text into 396 + #: the terminal. The supported paste actions are: 397 + 398 + #: quote-urls-at-prompt: 399 + #: If the text being pasted is a URL and the cursor is at a shell prompt, 400 + #: automatically quote the URL (needs shell_integration). 401 + #: confirm: 402 + #: Confirm the paste if bracketed paste mode is not active or there is more 403 + #: a large amount of text being pasted. 404 + #: filter: 405 + #: Run the filter_paste() function from the file paste-actions.py in 406 + #: the kitty config directory on the pasted text. The text returned by the 407 + #: function will be actually pasted. 408 + 409 + # strip_trailing_spaces never 410 + 411 + #: Remove spaces at the end of lines when copying to clipboard. A 412 + #: value of smart will do it when using normal selections, but not 413 + #: rectangle selections. A value of always will always do it. 414 + 415 + # select_by_word_characters @-./_~?&=%+# 416 + 417 + #: Characters considered part of a word when double clicking. In 418 + #: addition to these characters any character that is marked as an 419 + #: alphanumeric character in the Unicode database will be matched. 420 + 421 + # select_by_word_characters_forward 422 + 423 + #: Characters considered part of a word when extending the selection 424 + #: forward on double clicking. In addition to these characters any 425 + #: character that is marked as an alphanumeric character in the 426 + #: Unicode database will be matched. 427 + 428 + #: If empty (default) select_by_word_characters will be used for both 429 + #: directions. 430 + 431 + # click_interval -1.0 432 + 433 + #: The interval between successive clicks to detect double/triple 434 + #: clicks (in seconds). Negative numbers will use the system default 435 + #: instead, if available, or fallback to 0.5. 436 + 437 + # focus_follows_mouse no 438 + 439 + #: Set the active window to the window under the mouse when moving the 440 + #: mouse around. 441 + 442 + # pointer_shape_when_grabbed arrow 443 + 444 + #: The shape of the mouse pointer when the program running in the 445 + #: terminal grabs the mouse. Valid values are: arrow, beam and hand. 446 + 447 + # default_pointer_shape beam 448 + 449 + #: The default shape of the mouse pointer. Valid values are: arrow, 450 + #: beam and hand. 451 + 452 + # pointer_shape_when_dragging beam 453 + 454 + #: The default shape of the mouse pointer when dragging across text. 455 + #: Valid values are: arrow, beam and hand. 456 + 457 + #: Mouse actions {{{ 458 + 459 + #: Mouse buttons can be mapped to perform arbitrary actions. The 460 + #: syntax is: 461 + 462 + #: .. code-block:: none 463 + 464 + #: mouse_map button-name event-type modes action 465 + 466 + #: Where button-name is one of left, middle, right, b1 ... b8 with 467 + #: added keyboard modifiers. For example: ctrl+shift+left refers to 468 + #: holding the Ctrl+Shift keys while clicking with the left mouse 469 + #: button. The value b1 ... b8 can be used to refer to up to eight 470 + #: buttons on a mouse. 471 + 472 + #: event-type is one of press, release, doublepress, triplepress, 473 + #: click, doubleclick. modes indicates whether the action is performed 474 + #: when the mouse is grabbed by the program running in the terminal, 475 + #: or not. The values are grabbed or ungrabbed or a comma separated 476 + #: combination of them. grabbed refers to when the program running in 477 + #: the terminal has requested mouse events. Note that the click and 478 + #: double click events have a delay of click_interval to disambiguate 479 + #: from double and triple presses. 480 + 481 + #: You can run kitty with the kitty --debug-input command line option 482 + #: to see mouse events. See the builtin actions below to get a sense 483 + #: of what is possible. 484 + 485 + #: If you want to unmap an action, map it to no_op. For example, to 486 + #: disable opening of URLs with a plain click:: 487 + 488 + #: mouse_map left click ungrabbed no_op 489 + 490 + #: See all the mappable actions including mouse actions here 491 + #: <https://sw.kovidgoyal.net/kitty/actions/>. 492 + 493 + #: .. note:: 494 + #: Once a selection is started, releasing the button that started it will 495 + #: automatically end it and no release event will be dispatched. 496 + 497 + # clear_all_mouse_actions no 498 + 499 + #: Remove all mouse action definitions up to this point. Useful, for 500 + #: instance, to remove the default mouse actions. 501 + 502 + #: Click the link under the mouse or move the cursor 503 + 504 + # mouse_map left click ungrabbed mouse_handle_click selection link prompt 505 + 506 + #:: First check for a selection and if one exists do nothing. Then 507 + #:: check for a link under the mouse cursor and if one exists, click 508 + #:: it. Finally check if the click happened at the current shell 509 + #:: prompt and if so, move the cursor to the click location. Note 510 + #:: that this requires shell integration 511 + #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work. 512 + 513 + #: Click the link under the mouse or move the cursor even when grabbed 514 + 515 + # mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt 516 + 517 + #:: Same as above, except that the action is performed even when the 518 + #:: mouse is grabbed by the program running in the terminal. 519 + 520 + #: Click the link under the mouse cursor 521 + 522 + # mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_handle_click link 523 + 524 + #:: Variant with Ctrl+Shift is present because the simple click based 525 + #:: version has an unavoidable delay of click_interval, to 526 + #:: disambiguate clicks from double clicks. 527 + 528 + #: Discard press event for link click 529 + 530 + # mouse_map ctrl+shift+left press grabbed discard_event 531 + 532 + #:: Prevent this press event from being sent to the program that has 533 + #:: grabbed the mouse, as the corresponding release event is used to 534 + #:: open a URL. 535 + 536 + #: Paste from the primary selection 537 + 538 + # mouse_map middle release ungrabbed paste_from_selection 539 + 540 + #: Start selecting text 541 + 542 + # mouse_map left press ungrabbed mouse_selection normal 543 + 544 + #: Start selecting text in a rectangle 545 + 546 + # mouse_map ctrl+alt+left press ungrabbed mouse_selection rectangle 547 + 548 + #: Select a word 549 + 550 + # mouse_map left doublepress ungrabbed mouse_selection word 551 + 552 + #: Select a line 553 + 554 + # mouse_map left triplepress ungrabbed mouse_selection line 555 + 556 + #: Select line from point 557 + 558 + # mouse_map ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point 559 + 560 + #:: Select from the clicked point to the end of the line. 561 + 562 + #: Extend the current selection 563 + 564 + # mouse_map right press ungrabbed mouse_selection extend 565 + 566 + #:: If you want only the end of the selection to be moved instead of 567 + #:: the nearest boundary, use move-end instead of extend. 568 + 569 + #: Paste from the primary selection even when grabbed 570 + 571 + # mouse_map shift+middle release ungrabbed,grabbed paste_selection 572 + # mouse_map shift+middle press grabbed discard_event 573 + 574 + #: Start selecting text even when grabbed 575 + 576 + # mouse_map shift+left press ungrabbed,grabbed mouse_selection normal 577 + 578 + #: Start selecting text in a rectangle even when grabbed 579 + 580 + # mouse_map ctrl+shift+alt+left press ungrabbed,grabbed mouse_selection rectangle 581 + 582 + #: Select a word even when grabbed 583 + 584 + # mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word 585 + 586 + #: Select a line even when grabbed 587 + 588 + # mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line 589 + 590 + #: Select line from point even when grabbed 591 + 592 + # mouse_map ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point 593 + 594 + #:: Select from the clicked point to the end of the line even when 595 + #:: grabbed. 596 + 597 + #: Extend the current selection even when grabbed 598 + 599 + # mouse_map shift+right press ungrabbed,grabbed mouse_selection extend 600 + 601 + #: Show clicked command output in pager 602 + 603 + # mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output 604 + 605 + #:: Requires shell integration 606 + #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work. 607 + 608 + #: }}} 609 + 610 + #: }}} 611 + 612 + #: Performance tuning {{{ 613 + 614 + # repaint_delay 10 615 + 616 + #: Delay between screen updates (in milliseconds). Decreasing it, 617 + #: increases frames-per-second (FPS) at the cost of more CPU usage. 618 + #: The default value yields ~100 FPS which is more than sufficient for 619 + #: most uses. Note that to actually achieve 100 FPS, you have to 620 + #: either set sync_to_monitor to no or use a monitor with a high 621 + #: refresh rate. Also, to minimize latency when there is pending input 622 + #: to be processed, this option is ignored. 623 + 624 + # input_delay 3 625 + 626 + #: Delay before input from the program running in the terminal is 627 + #: processed (in milliseconds). Note that decreasing it will increase 628 + #: responsiveness, but also increase CPU usage and might cause flicker 629 + #: in full screen programs that redraw the entire screen on each loop, 630 + #: because kitty is so fast that partial screen updates will be drawn. 631 + 632 + # sync_to_monitor yes 633 + 634 + #: Sync screen updates to the refresh rate of the monitor. This 635 + #: prevents screen tearing 636 + #: <https://en.wikipedia.org/wiki/Screen_tearing> when scrolling. 637 + #: However, it limits the rendering speed to the refresh rate of your 638 + #: monitor. With a very high speed mouse/high keyboard repeat rate, 639 + #: you may notice some slight input latency. If so, set this to no. 640 + 641 + #: }}} 642 + 643 + #: Terminal bell {{{ 644 + 645 + # enable_audio_bell yes 646 + 647 + #: The audio bell. Useful to disable it in environments that require 648 + #: silence. 649 + 650 + # visual_bell_duration 0.0 651 + 652 + #: The visual bell duration (in seconds). Flash the screen when a bell 653 + #: occurs for the specified number of seconds. Set to zero to disable. 654 + 655 + # visual_bell_color none 656 + 657 + #: The color used by visual bell. Set to none will fall back to 658 + #: selection background color. If you feel that the visual bell is too 659 + #: bright, you can set it to a darker color. 660 + 661 + # window_alert_on_bell yes 662 + 663 + #: Request window attention on bell. Makes the dock icon bounce on 664 + #: macOS or the taskbar flash on linux. 665 + 666 + # bell_on_tab "🔔 " 667 + 668 + #: Some text or a Unicode symbol to show on the tab if a window in the 669 + #: tab that does not have focus has a bell. If you want to use leading 670 + #: or trailing spaces, surround the text with quotes. See 671 + #: tab_title_template for how this is rendered. 672 + 673 + #: For backwards compatibility, values of yes, y and true are 674 + #: converted to the default bell symbol and no, n, false and none are 675 + #: converted to the empty string. 676 + 677 + # command_on_bell none 678 + 679 + #: Program to run when a bell occurs. The environment variable 680 + #: KITTY_CHILD_CMDLINE can be used to get the program running in the 681 + #: window in which the bell occurred. 682 + 683 + # bell_path none 684 + 685 + #: Path to a sound file to play as the bell sound. If set to none, the 686 + #: system default bell sound is used. Must be in a format supported by 687 + #: the operating systems sound API, such as WAV or OGA on Linux 688 + #: (libcanberra) or AIFF, MP3 or WAV on macOS (NSSound) 689 + 690 + #: }}} 691 + 692 + #: Window layout {{{ 693 + 694 + # remember_window_size yes 695 + # initial_window_width 640 696 + # initial_window_height 400 697 + 698 + #: If enabled, the window size will be remembered so that new 699 + #: instances of kitty will have the same size as the previous 700 + #: instance. If disabled, the window will initially have size 701 + #: configured by initial_window_width/height, in pixels. You can use a 702 + #: suffix of "c" on the width/height values to have them interpreted 703 + #: as number of cells instead of pixels. 704 + 705 + # enabled_layouts * 706 + 707 + #: The enabled window layouts. A comma separated list of layout names. 708 + #: The special value all means all layouts. The first listed layout 709 + #: will be used as the startup layout. Default configuration is all 710 + #: layouts in alphabetical order. For a list of available layouts, see 711 + #: the layouts <https://sw.kovidgoyal.net/kitty/overview/#layouts>. 712 + 713 + # window_resize_step_cells 2 714 + # window_resize_step_lines 2 715 + 716 + #: The step size (in units of cell width/cell height) to use when 717 + #: resizing kitty windows in a layout with the shortcut 718 + #: start_resizing_window. The cells value is used for horizontal 719 + #: resizing, and the lines value is used for vertical resizing. 720 + 721 + # window_border_width 0.5pt 722 + 723 + #: The width of window borders. Can be either in pixels (px) or pts 724 + #: (pt). Values in pts will be rounded to the nearest number of pixels 725 + #: based on screen resolution. If not specified, the unit is assumed 726 + #: to be pts. Note that borders are displayed only when more than one 727 + #: window is visible. They are meant to separate multiple windows. 728 + 729 + # draw_minimal_borders yes 730 + 731 + #: Draw only the minimum borders needed. This means that only the 732 + #: borders that separate the inactive window from a neighbor are 733 + #: drawn. Note that setting a non-zero window_margin_width overrides 734 + #: this and causes all borders to be drawn. 735 + 736 + # window_margin_width 0 737 + 738 + #: The window margin (in pts) (blank area outside the border). A 739 + #: single value sets all four sides. Two values set the vertical and 740 + #: horizontal sides. Three values set top, horizontal and bottom. Four 741 + #: values set top, right, bottom and left. 742 + 743 + # single_window_margin_width -1 744 + 745 + #: The window margin to use when only a single window is visible (in 746 + #: pts). Negative values will cause the value of window_margin_width 747 + #: to be used instead. A single value sets all four sides. Two values 748 + #: set the vertical and horizontal sides. Three values set top, 749 + #: horizontal and bottom. Four values set top, right, bottom and left. 750 + 751 + # window_padding_width 0 752 + 753 + #: The window padding (in pts) (blank area between the text and the 754 + #: window border). A single value sets all four sides. Two values set 755 + #: the vertical and horizontal sides. Three values set top, horizontal 756 + #: and bottom. Four values set top, right, bottom and left. 757 + 758 + # placement_strategy center 759 + 760 + #: When the window size is not an exact multiple of the cell size, the 761 + #: cell area of the terminal window will have some extra padding on 762 + #: the sides. You can control how that padding is distributed with 763 + #: this option. Using a value of center means the cell area will be 764 + #: placed centrally. A value of top-left means the padding will be 765 + #: only at the bottom and right edges. 766 + 767 + # active_border_color #00ff00 768 + 769 + #: The color for the border of the active window. Set this to none to 770 + #: not draw borders around the active window. 771 + 772 + # inactive_border_color #cccccc 773 + 774 + #: The color for the border of inactive windows. 775 + 776 + # bell_border_color #ff5a00 777 + 778 + #: The color for the border of inactive windows in which a bell has 779 + #: occurred. 780 + 781 + # inactive_text_alpha 1.0 782 + 783 + #: Fade the text in inactive windows by the specified amount (a number 784 + #: between zero and one, with zero being fully faded). 785 + 786 + # hide_window_decorations no 787 + 788 + #: Hide the window decorations (title-bar and window borders) with 789 + #: yes. On macOS, titlebar-only can be used to only hide the titlebar. 790 + #: Whether this works and exactly what effect it has depends on the 791 + #: window manager/operating system. Note that the effects of changing 792 + #: this option when reloading config are undefined. 793 + 794 + # window_logo_path none 795 + 796 + #: Path to a logo image. Must be in PNG format. Relative paths are 797 + #: interpreted relative to the kitty config directory. The logo is 798 + #: displayed in a corner of every kitty window. The position is 799 + #: controlled by window_logo_position. Individual windows can be 800 + #: configured to have different logos either using the launch action 801 + #: or the remote control <https://sw.kovidgoyal.net/kitty/remote- 802 + #: control/> facility. 803 + 804 + # window_logo_position bottom-right 805 + 806 + #: Where to position the window logo in the window. The value can be 807 + #: one of: top-left, top, top-right, left, center, right, bottom-left, 808 + #: bottom, bottom-right. 809 + 810 + # window_logo_alpha 0.5 811 + 812 + #: The amount the logo should be faded into the background. With zero 813 + #: being fully faded and one being fully opaque. 814 + 815 + # resize_debounce_time 0.1 816 + 817 + #: The time to wait before redrawing the screen when a resize event is 818 + #: received (in seconds). On platforms such as macOS, where the 819 + #: operating system sends events corresponding to the start and end of 820 + #: a resize, this number is ignored. 821 + 822 + # resize_draw_strategy static 823 + 824 + #: Choose how kitty draws a window while a resize is in progress. A 825 + #: value of static means draw the current window contents, mostly 826 + #: unchanged. A value of scale means draw the current window contents 827 + #: scaled. A value of blank means draw a blank window. A value of size 828 + #: means show the window size in cells. 829 + 830 + resize_in_steps yes 831 + 832 + #: Resize the OS window in steps as large as the cells, instead of 833 + #: with the usual pixel accuracy. Combined with initial_window_width 834 + #: and initial_window_height in number of cells, this option can be 835 + #: used to keep the margins as small as possible when resizing the OS 836 + #: window. Note that this does not currently work on Wayland. 837 + 838 + # visual_window_select_characters 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ 839 + 840 + #: The list of characters for visual window selection. For example, 841 + #: for selecting a window to focus on with focus_visible_window. The 842 + #: value should be a series of unique numbers or alphabets, case 843 + #: insensitive, from the set [0-9A-Z]. Specify your preference as a 844 + #: string of characters. 845 + 846 + # confirm_os_window_close -1 847 + 848 + #: Ask for confirmation when closing an OS window or a tab with at 849 + #: least this number of kitty windows in it by window manager (e.g. 850 + #: clicking the window close button or pressing the operating system 851 + #: shortcut to close windows) or by the close_tab action. A value of 852 + #: zero disables confirmation. This confirmation also applies to 853 + #: requests to quit the entire application (all OS windows, via the 854 + #: quit action). Negative values are converted to positive ones, 855 + #: however, with shell_integration enabled, using negative values 856 + #: means windows sitting at a shell prompt are not counted, only 857 + #: windows where some command is currently running. Note that if you 858 + #: want confirmation when closing individual windows, you can map the 859 + #: close_window_with_confirmation action. 860 + 861 + #: }}} 862 + 863 + #: Tab bar {{{ 864 + 865 + # tab_bar_edge bottom 866 + 867 + #: The edge to show the tab bar on, top or bottom. 868 + 869 + # tab_bar_margin_width 0.0 870 + 871 + #: The margin to the left and right of the tab bar (in pts). 872 + 873 + # tab_bar_margin_height 0.0 0.0 874 + 875 + #: The margin above and below the tab bar (in pts). The first number 876 + #: is the margin between the edge of the OS Window and the tab bar. 877 + #: The second number is the margin between the tab bar and the 878 + #: contents of the current tab. 879 + 880 + # tab_bar_style fade 881 + 882 + #: The tab bar style, can be one of: 883 + 884 + #: fade 885 + #: Each tab's edges fade into the background color. (See also tab_fade) 886 + #: slant 887 + #: Tabs look like the tabs in a physical file. 888 + #: separator 889 + #: Tabs are separated by a configurable separator. (See also 890 + #: tab_separator) 891 + #: powerline 892 + #: Tabs are shown as a continuous line with "fancy" separators. 893 + #: (See also tab_powerline_style) 894 + #: custom 895 + #: A user-supplied Python function called draw_tab is loaded from the file 896 + #: tab_bar.py in the kitty config directory. For examples of how to 897 + #: write such a function, see the functions named draw_tab_with_* in 898 + #: kitty's source code: kitty/tab_bar.py. See also 899 + #: this discussion <https://github.com/kovidgoyal/kitty/discussions/4447> 900 + #: for examples from kitty users. 901 + #: hidden 902 + #: The tab bar is hidden. If you use this, you might want to create a mapping 903 + #: for the select_tab action which presents you with a list of tabs and 904 + #: allows for easy switching to a tab. 905 + 906 + # tab_bar_align left 907 + 908 + #: The horizontal alignment of the tab bar, can be one of: left, 909 + #: center, right. 910 + 911 + # tab_bar_min_tabs 2 912 + 913 + #: The minimum number of tabs that must exist before the tab bar is 914 + #: shown. 915 + 916 + # tab_switch_strategy previous 917 + 918 + #: The algorithm to use when switching to a tab when the current tab 919 + #: is closed. The default of previous will switch to the last used 920 + #: tab. A value of left will switch to the tab to the left of the 921 + #: closed tab. A value of right will switch to the tab to the right of 922 + #: the closed tab. A value of last will switch to the right-most tab. 923 + 924 + # tab_fade 0.25 0.5 0.75 1 925 + 926 + #: Control how each tab fades into the background when using fade for 927 + #: the tab_bar_style. Each number is an alpha (between zero and one) 928 + #: that controls how much the corresponding cell fades into the 929 + #: background, with zero being no fade and one being full fade. You 930 + #: can change the number of cells used by adding/removing entries to 931 + #: this list. 932 + 933 + # tab_separator " ┇" 934 + 935 + #: The separator between tabs in the tab bar when using separator as 936 + #: the tab_bar_style. 937 + 938 + # tab_powerline_style angled 939 + 940 + #: The powerline separator style between tabs in the tab bar when 941 + #: using powerline as the tab_bar_style, can be one of: angled, 942 + #: slanted, round. 943 + 944 + # tab_activity_symbol none 945 + 946 + #: Some text or a Unicode symbol to show on the tab if a window in the 947 + #: tab that does not have focus has some activity. If you want to use 948 + #: leading or trailing spaces, surround the text with quotes. See 949 + #: tab_title_template for how this is rendered. 950 + 951 + # tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}" 952 + 953 + #: A template to render the tab title. The default just renders the 954 + #: title with optional symbols for bell and activity. If you wish to 955 + #: include the tab-index as well, use something like: {index}:{title}. 956 + #: Useful if you have shortcuts mapped for goto_tab N. If you prefer 957 + #: to see the index as a superscript, use {sup.index}. All data 958 + #: available is: 959 + 960 + #: title 961 + #: The current tab title. 962 + #: index 963 + #: The tab index useable with goto_tab N goto_tab shortcuts. 964 + #: layout_name 965 + #: The current layout name. 966 + #: num_windows 967 + #: The number of windows in the tab. 968 + #: num_window_groups 969 + #: The number of window groups (not counting overlay windows) in the tab. 970 + #: tab.active_wd 971 + #: The working directory of the currently active window in the tab (expensive, 972 + #: requires syscall). 973 + #: max_title_length 974 + #: The maximum title length available. 975 + 976 + #: Note that formatting is done by Python's string formatting 977 + #: machinery, so you can use, for instance, {layout_name[:2].upper()} 978 + #: to show only the first two letters of the layout name, upper-cased. 979 + #: If you want to style the text, you can use styling directives, for 980 + #: example: 981 + #: `{fmt.fg.red}red{fmt.fg.tab}normal{fmt.bg._00FF00}greenbg{fmt.bg.tab}`. 982 + #: Similarly, for bold and italic: 983 + #: `{fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}`. 984 + #: Note that for backward compatibility, if {bell_symbol} or 985 + #: {activity_symbol} are not present in the template, they are 986 + #: prepended to it. 987 + 988 + # active_tab_title_template none 989 + 990 + #: Template to use for active tabs. If not specified falls back to 991 + #: tab_title_template. 992 + 993 + # active_tab_foreground #000 994 + # active_tab_background #eee 995 + # active_tab_font_style bold-italic 996 + # inactive_tab_foreground #444 997 + # inactive_tab_background #999 998 + # inactive_tab_font_style normal 999 + 1000 + #: Tab bar colors and styles. 1001 + 1002 + # tab_bar_background none 1003 + 1004 + #: Background color for the tab bar. Defaults to using the terminal 1005 + #: background color. 1006 + 1007 + # tab_bar_margin_color none 1008 + 1009 + #: Color for the tab bar margin area. Defaults to using the terminal 1010 + #: background color. 1011 + 1012 + #: }}} 1013 + 1014 + #: Color scheme {{{ 1015 + 1016 + # foreground #dddddd 1017 + # background #000000 1018 + 1019 + #: The foreground and background colors. 1020 + 1021 + # background_opacity 0.9 1022 + 1023 + #: The opacity of the background. A number between zero and one, where 1024 + #: one is opaque and zero is fully transparent. This will only work if 1025 + #: supported by the OS (for instance, when using a compositor under 1026 + #: X11). Note that it only sets the background color's opacity in 1027 + #: cells that have the same background color as the default terminal 1028 + #: background, so that things like the status bar in vim, powerline 1029 + #: prompts, etc. still look good. But it means that if you use a color 1030 + #: theme with a background color in your editor, it will not be 1031 + #: rendered as transparent. Instead you should change the default 1032 + #: background color in your kitty config and not use a background 1033 + #: color in the editor color scheme. Or use the escape codes to set 1034 + #: the terminals default colors in a shell script to launch your 1035 + #: editor. Be aware that using a value less than 1.0 is a (possibly 1036 + #: significant) performance hit. If you want to dynamically change 1037 + #: transparency of windows, set dynamic_background_opacity to yes 1038 + #: (this is off by default as it has a performance cost). Changing 1039 + #: this option when reloading the config will only work if 1040 + #: dynamic_background_opacity was enabled in the original config. 1041 + 1042 + # background_image none 1043 + 1044 + #: Path to a background image. Must be in PNG format. 1045 + 1046 + # background_image_layout tiled 1047 + 1048 + #: Whether to tile, scale or clamp the background image. The value can 1049 + #: be one of tiled, mirror-tiled, scaled, clamped or centered. 1050 + 1051 + # background_image_linear no 1052 + 1053 + #: When background image is scaled, whether linear interpolation 1054 + #: should be used. 1055 + 1056 + # dynamic_background_opacity no 1057 + 1058 + #: Allow changing of the background_opacity dynamically, using either 1059 + #: keyboard shortcuts (increase_background_opacity and 1060 + #: decrease_background_opacity) or the remote control facility. 1061 + #: Changing this option by reloading the config is not supported. 1062 + 1063 + # background_tint 0.0 1064 + 1065 + #: How much to tint the background image by the background color. 1066 + #: This option makes it easier to read the text. Tinting is done using 1067 + #: the current background color for each window. This option applies 1068 + #: only if background_opacity is set and transparent windows are 1069 + #: supported or background_image is set. 1070 + 1071 + # dim_opacity 0.75 1072 + 1073 + #: How much to dim text that has the DIM/FAINT attribute set. One 1074 + #: means no dimming and zero means fully dimmed (i.e. invisible). 1075 + 1076 + # selection_foreground #000000 1077 + # selection_background #fffacd 1078 + 1079 + #: The foreground and background colors for text selected with the 1080 + #: mouse. Setting both of these to none will cause a "reverse video" 1081 + #: effect for selections, where the selection will be the cell text 1082 + #: color and the text will become the cell background color. Setting 1083 + #: only selection_foreground to none will cause the foreground color 1084 + #: to be used unchanged. Note that these colors can be overridden by 1085 + #: the program running in the terminal. 1086 + 1087 + #: The color table {{{ 1088 + 1089 + #: The 256 terminal colors. There are 8 basic colors, each color has a 1090 + #: dull and bright version, for the first 16 colors. You can set the 1091 + #: remaining 240 colors as color16 to color255. 1092 + 1093 + # color0 #000000 1094 + # color8 #767676 1095 + 1096 + #: black 1097 + 1098 + # color1 #cc0403 1099 + # color9 #f2201f 1100 + 1101 + #: red 1102 + 1103 + # color2 #19cb00 1104 + # color10 #23fd00 1105 + 1106 + #: green 1107 + 1108 + # color3 #cecb00 1109 + # color11 #fffd00 1110 + 1111 + #: yellow 1112 + 1113 + # color4 #0d73cc 1114 + # color12 #1a8fff 1115 + 1116 + #: blue 1117 + 1118 + # color5 #cb1ed1 1119 + # color13 #fd28ff 1120 + 1121 + #: magenta 1122 + 1123 + # color6 #0dcdcd 1124 + # color14 #14ffff 1125 + 1126 + #: cyan 1127 + 1128 + # color7 #dddddd 1129 + # color15 #ffffff 1130 + 1131 + #: white 1132 + 1133 + # mark1_foreground black 1134 + 1135 + #: Color for marks of type 1 1136 + 1137 + # mark1_background #98d3cb 1138 + 1139 + #: Color for marks of type 1 (light steel blue) 1140 + 1141 + # mark2_foreground black 1142 + 1143 + #: Color for marks of type 2 1144 + 1145 + # mark2_background #f2dcd3 1146 + 1147 + #: Color for marks of type 1 (beige) 1148 + 1149 + # mark3_foreground black 1150 + 1151 + #: Color for marks of type 3 1152 + 1153 + # mark3_background #f274bc 1154 + 1155 + #: Color for marks of type 3 (violet) 1156 + 1157 + #: }}} 1158 + 1159 + #: }}} 1160 + 1161 + #: Advanced {{{ 1162 + 1163 + # shell . 1164 + 1165 + #: The shell program to execute. The default value of . means to use 1166 + #: whatever shell is set as the default shell for the current user. 1167 + #: Note that on macOS if you change this, you might need to add 1168 + #: --login and --interactive to ensure that the shell starts in 1169 + #: interactive mode and reads its startup rc files. 1170 + 1171 + # editor . 1172 + 1173 + #: The terminal based text editor (such as vim or nano) to use when 1174 + #: editing the kitty config file or similar tasks. 1175 + 1176 + #: The default value of . means to use the environment variables 1177 + #: VISUAL and EDITOR in that order. If these variables aren't set, 1178 + #: kitty will run your shell ($SHELL -l -i -c env) to see if your 1179 + #: shell startup rc files set VISUAL or EDITOR. If that doesn't work, 1180 + #: kitty will cycle through various known editors (vim, emacs, etc.) 1181 + #: and take the first one that exists on your system. 1182 + 1183 + # close_on_child_death no 1184 + 1185 + #: Close the window when the child process (shell) exits. With the 1186 + #: default value no, the terminal will remain open when the child 1187 + #: exits as long as there are still processes outputting to the 1188 + #: terminal (for example disowned or backgrounded processes). When 1189 + #: enabled with yes, the window will close as soon as the child 1190 + #: process exits. Note that setting it to yes means that any 1191 + #: background processes still using the terminal can fail silently 1192 + #: because their stdout/stderr/stdin no longer work. 1193 + 1194 + # remote_control_password 1195 + 1196 + #: Allow other programs to control kitty using passwords. This option 1197 + #: can be specified multiple times to add multiple passwords. If no 1198 + #: passwords are present kitty will ask the user for permission if a 1199 + #: program tries to use remote control with a password. A password can 1200 + #: also *optionally* be associated with a set of allowed remote 1201 + #: control actions. For example:: 1202 + 1203 + #: remote_control_password "my passphrase" get-colors set-colors focus-window focus-tab 1204 + 1205 + #: Only the specified actions will be allowed when using this 1206 + #: password. Glob patterns can be used too, for example:: 1207 + 1208 + #: remote_control_password "my passphrase" set-tab-* resize-* 1209 + 1210 + #: To get a list of available actions, run:: 1211 + 1212 + #: kitty @ --help 1213 + 1214 + #: A set of actions to be allowed when no password is sent can be 1215 + #: specified by using an empty password, for example:: 1216 + 1217 + #: remote_control_password "" *-colors 1218 + 1219 + #: Finally, the path to a python module can be specified that provides 1220 + #: a function is_cmd_allowed that is used to check every remote 1221 + #: control command. See rc_custom_auth 1222 + #: <https://sw.kovidgoyal.net/kitty/remote-control/#rc-custom-auth> 1223 + #: for details. For example:: 1224 + 1225 + #: remote_control_password "my passphrase" my_rc_command_checker.py 1226 + 1227 + #: Relative paths are resolved from the kitty configuration directory. 1228 + 1229 + # allow_remote_control no 1230 + 1231 + #: Allow other programs to control kitty. If you turn this on, other 1232 + #: programs can control all aspects of kitty, including sending text 1233 + #: to kitty windows, opening new windows, closing windows, reading the 1234 + #: content of windows, etc. Note that this even works over SSH 1235 + #: connections. The default setting of no prevents any form of remote 1236 + #: control. The meaning of the various values are: 1237 + 1238 + #: password 1239 + #: Remote control requests received over both the TTY device and the socket are 1240 + #: confirmed based on passwords, see remote_control_password. 1241 + 1242 + #: socket-only 1243 + #: Remote control requests received over a socket are accepted unconditionally. 1244 + #: Requests received over the TTY are denied. See listen_on. 1245 + 1246 + #: socket 1247 + #: Remote control requests received over a socket are accepted unconditionally. 1248 + #: Requests received over the TTY are confirmed based on password. 1249 + 1250 + #: no 1251 + #: Remote control is completely disabled. 1252 + 1253 + #: yes 1254 + #: Remote control requests are always accepted. 1255 + 1256 + # listen_on none 1257 + 1258 + #: Listen to the specified UNIX socket for remote control connections. 1259 + #: Note that this will apply to all kitty instances. It can be 1260 + #: overridden by the kitty --listen-on command line option, which also 1261 + #: supports listening on a TCP socket. This option accepts only UNIX 1262 + #: sockets, such as unix:${TEMP}/mykitty or unix:@mykitty (on Linux). 1263 + #: Environment variables are expanded and relative paths are resolved 1264 + #: with respect to the temporary directory. If {kitty_pid} is present, 1265 + #: then it is replaced by the PID of the kitty process, otherwise the 1266 + #: PID of the kitty process is appended to the value, with a hyphen. 1267 + #: See the help for kitty --listen-on for more details. Note that this 1268 + #: will be ignored unless allow_remote_control is set to either: yes, 1269 + #: socket or socket-only. Changing this option by reloading the config 1270 + #: is not supported. 1271 + 1272 + # env 1273 + 1274 + #: Specify the environment variables to be set in all child processes. 1275 + #: Using the name with an equal sign (e.g. env VAR=) will set it to 1276 + #: the empty string. Specifying only the name (e.g. env VAR) will 1277 + #: remove the variable from the child process' environment. Note that 1278 + #: environment variables are expanded recursively, for example:: 1279 + 1280 + #: env VAR1=a 1281 + #: env VAR2=${HOME}/${VAR1}/b 1282 + 1283 + #: The value of VAR2 will be <path to home directory>/a/b. 1284 + 1285 + # watcher 1286 + 1287 + #: Path to python file which will be loaded for watchers 1288 + #: <https://sw.kovidgoyal.net/kitty/launch/#watchers>. Can be 1289 + #: specified more than once to load multiple watchers. The watchers 1290 + #: will be added to every kitty window. Relative paths are resolved 1291 + #: relative to the kitty config directory. Note that reloading the 1292 + #: config will only affect windows created after the reload. 1293 + 1294 + # exe_search_path 1295 + 1296 + #: Control where kitty finds the programs to run. The default search 1297 + #: order is: First search the system wide PATH, then ~/.local/bin and 1298 + #: ~/bin. If still not found, the PATH defined in the login shell 1299 + #: after sourcing all its startup files is tried. Finally, if present, 1300 + #: the PATH specified by the env option is tried. 1301 + 1302 + #: This option allows you to prepend, append, or remove paths from 1303 + #: this search order. It can be specified multiple times for multiple 1304 + #: paths. A simple path will be prepended to the search order. A path 1305 + #: that starts with the + sign will be append to the search order, 1306 + #: after ~/bin above. A path that starts with the - sign will be 1307 + #: removed from the entire search order. For example:: 1308 + 1309 + #: exe_search_path /some/prepended/path 1310 + #: exe_search_path +/some/appended/path 1311 + #: exe_search_path -/some/excluded/path 1312 + 1313 + # update_check_interval 24 1314 + 1315 + #: The interval to periodically check if an update to kitty is 1316 + #: available (in hours). If an update is found, a system notification 1317 + #: is displayed informing you of the available update. The default is 1318 + #: to check every 24 hours, set to zero to disable. Update checking is 1319 + #: only done by the official binary builds. Distro packages or source 1320 + #: builds do not do update checking. Changing this option by reloading 1321 + #: the config is not supported. 1322 + 1323 + # startup_session none 1324 + 1325 + #: Path to a session file to use for all kitty instances. Can be 1326 + #: overridden by using the kitty --session command line option for 1327 + #: individual instances. See sessions 1328 + #: <https://sw.kovidgoyal.net/kitty/overview/#sessions> in the kitty 1329 + #: documentation for details. Note that relative paths are interpreted 1330 + #: with respect to the kitty config directory. Environment variables 1331 + #: in the path are expanded. Changing this option by reloading the 1332 + #: config is not supported. 1333 + 1334 + # clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask 1335 + 1336 + #: Allow programs running in kitty to read and write from the 1337 + #: clipboard. You can control exactly which actions are allowed. The 1338 + #: possible actions are: write-clipboard, read-clipboard, write- 1339 + #: primary, read-primary, read-clipboard-ask, read-primary-ask. The 1340 + #: default is to allow writing to the clipboard and primary selection 1341 + #: and to ask for permission when a program tries to read from the 1342 + #: clipboard. Note that disabling the read confirmation is a security 1343 + #: risk as it means that any program, even the ones running on a 1344 + #: remote server via SSH can read your clipboard. See also 1345 + #: clipboard_max_size. 1346 + 1347 + # clipboard_max_size 64 1348 + 1349 + #: The maximum size (in MB) of data from programs running in kitty 1350 + #: that will be stored for writing to the system clipboard. A value of 1351 + #: zero means no size limit is applied. See also clipboard_control. 1352 + 1353 + # file_transfer_confirmation_bypass 1354 + 1355 + #: The password that can be supplied to the file transfer kitten 1356 + #: <https://sw.kovidgoyal.net/kitty/kittens/transfer/> to skip the 1357 + #: transfer confirmation prompt. This should only be used when 1358 + #: initiating transfers from trusted computers, over trusted networks 1359 + #: or encrypted transports, as it allows any programs running on the 1360 + #: remote machine to read/write to the local filesystem, without 1361 + #: permission. 1362 + 1363 + # allow_hyperlinks yes 1364 + 1365 + #: Process hyperlink escape sequences (OSC 8). If disabled OSC 8 1366 + #: escape sequences are ignored. Otherwise they become clickable 1367 + #: links, that you can click with the mouse or by using the hints 1368 + #: kitten <https://sw.kovidgoyal.net/kitty/kittens/hints/>. The 1369 + #: special value of ask means that kitty will ask before opening the 1370 + #: link when clicked. 1371 + 1372 + # shell_integration enabled 1373 + 1374 + #: Enable shell integration on supported shells. This enables features 1375 + #: such as jumping to previous prompts, browsing the output of the 1376 + #: previous command in a pager, etc. on supported shells. Set to 1377 + #: disabled to turn off shell integration, completely. It is also 1378 + #: possible to disable individual features, set to a space separated 1379 + #: list of these values: no-rc, no-cursor, no-title, no-cwd, no- 1380 + #: prompt-mark, no-complete. See Shell integration 1381 + #: <https://sw.kovidgoyal.net/kitty/shell-integration/> for details. 1382 + 1383 + # allow_cloning ask 1384 + 1385 + #: Control whether programs running in the terminal can request new 1386 + #: windows to be created. The canonical example is clone-in-kitty 1387 + #: <https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell>. 1388 + #: By default, kitty will ask for permission for each clone request. 1389 + #: Allowing cloning unconditionally gives programs running in the 1390 + #: terminal (including over SSH) permission to execute arbitrary code, 1391 + #: as the user who is running the terminal, on the computer that the 1392 + #: terminal is running on. 1393 + 1394 + # clone_source_strategies venv,conda,env_var,path 1395 + 1396 + #: Control what shell code is sourced when running clone-in-kitty in 1397 + #: the newly cloned window. The supported strategies are: 1398 + 1399 + #: venv 1400 + #: Source the file $VIRTUAL_ENV/bin/activate. This is used by the 1401 + #: Python stdlib venv module and allows cloning venvs automatically. 1402 + #: conda 1403 + #: Run conda activate $CONDA_DEFAULT_ENV. This supports the virtual 1404 + #: environments created by conda. 1405 + #: env_var 1406 + #: Execute the contents of the environment variable 1407 + #: KITTY_CLONE_SOURCE_CODE with eval. 1408 + #: path 1409 + #: Source the file pointed to by the environment variable 1410 + #: KITTY_CLONE_SOURCE_PATH. 1411 + 1412 + #: This option must be a comma separated list of the above values. 1413 + #: This only source the first valid one in the above order. 1414 + 1415 + # term xterm-kitty 1416 + 1417 + #: The value of the TERM environment variable to set. Changing this 1418 + #: can break many terminal programs, only change it if you know what 1419 + #: you are doing, not because you read some advice on "Stack Overflow" 1420 + #: to change it. The TERM variable is used by various programs to get 1421 + #: information about the capabilities and behavior of the terminal. If 1422 + #: you change it, depending on what programs you run, and how 1423 + #: different the terminal you are changing it to is, various things 1424 + #: from key-presses, to colors, to various advanced features may not 1425 + #: work. Changing this option by reloading the config will only affect 1426 + #: newly created windows. 1427 + 1428 + #: }}} 1429 + 1430 + #: OS specific tweaks {{{ 1431 + 1432 + wayland_titlebar_color background 1433 + 1434 + #: The color of the kitty window's titlebar on Wayland systems with 1435 + #: client side window decorations such as GNOME. A value of system 1436 + #: means to use the default system color, a value of background means 1437 + #: to use the background color of the currently active window and 1438 + #: finally you can use an arbitrary color, such as #12af59 or red. 1439 + 1440 + macos_titlebar_color background 1441 + 1442 + #: The color of the kitty window's titlebar on macOS. A value of 1443 + #: system means to use the default system color, light or dark can 1444 + #: also be used to set it explicitly. A value of background means to 1445 + #: use the background color of the currently active window and finally 1446 + #: you can use an arbitrary color, such as #12af59 or red. WARNING: 1447 + #: This option works by using a hack when arbitrary color (or 1448 + #: background) is configured, as there is no proper Cocoa API for it. 1449 + #: It sets the background color of the entire window and makes the 1450 + #: titlebar transparent. As such it is incompatible with 1451 + #: background_opacity. If you want to use both, you are probably 1452 + #: better off just hiding the titlebar with hide_window_decorations. 1453 + 1454 + # macos_option_as_alt no 1455 + 1456 + #: Use the Option key as an Alt key on macOS. With this set to no, 1457 + #: kitty will use the macOS native Option+Key to enter Unicode 1458 + #: character behavior. This will break any Alt+Key keyboard shortcuts 1459 + #: in your terminal programs, but you can use the macOS Unicode input 1460 + #: technique. You can use the values: left, right or both to use only 1461 + #: the left, right or both Option keys as Alt, instead. Note that 1462 + #: kitty itself always treats Option the same as Alt. This means you 1463 + #: cannot use this option to configure different kitty shortcuts for 1464 + #: Option+Key vs. Alt+Key. Also, any kitty shortcuts using 1465 + #: Option/Alt+Key will take priority, so that any such key presses 1466 + #: will not be passed to terminal programs running inside kitty. 1467 + #: Changing this option by reloading the config is not supported. 1468 + 1469 + # macos_hide_from_tasks no 1470 + 1471 + #: Hide the kitty window from running tasks on macOS (⌘+Tab and the 1472 + #: Dock). Changing this option by reloading the config is not 1473 + #: supported. 1474 + 1475 + # macos_quit_when_last_window_closed no 1476 + 1477 + #: Have kitty quit when all the top-level windows are closed on macOS. 1478 + #: By default, kitty will stay running, even with no open windows, as 1479 + #: is the expected behavior on macOS. 1480 + 1481 + # macos_window_resizable yes 1482 + 1483 + #: Disable this if you want kitty top-level OS windows to not be 1484 + #: resizable on macOS. Changing this option by reloading the config 1485 + #: will only affect newly created OS windows. 1486 + 1487 + # macos_thicken_font 0 1488 + 1489 + #: Draw an extra border around the font with the given width, to 1490 + #: increase legibility at small font sizes on macOS. For example, a 1491 + #: value of 0.75 will result in rendering that looks similar to sub- 1492 + #: pixel antialiasing at common font sizes. 1493 + 1494 + # macos_traditional_fullscreen no 1495 + 1496 + #: Use the macOS traditional full-screen transition, that is faster, 1497 + #: but less pretty. 1498 + 1499 + # macos_show_window_title_in all 1500 + 1501 + #: Control where the window title is displayed on macOS. A value of 1502 + #: window will show the title of the currently active window at the 1503 + #: top of the macOS window. A value of menubar will show the title of 1504 + #: the currently active window in the macOS global menu bar, making 1505 + #: use of otherwise wasted space. A value of all will show the title 1506 + #: in both places, and none hides the title. See 1507 + #: macos_menubar_title_max_length for how to control the length of the 1508 + #: title in the menu bar. 1509 + 1510 + # macos_menubar_title_max_length 0 1511 + 1512 + #: The maximum number of characters from the window title to show in 1513 + #: the macOS global menu bar. Values less than one means that there is 1514 + #: no maximum limit. 1515 + 1516 + # macos_custom_beam_cursor no 1517 + 1518 + #: Use a custom mouse cursor for macOS that is easier to see on both 1519 + #: light and dark backgrounds. Nowadays, the default macOS cursor 1520 + #: already comes with a white border. WARNING: this might make your 1521 + #: mouse cursor invisible on dual GPU machines. Changing this option 1522 + #: by reloading the config is not supported. 1523 + 1524 + # macos_colorspace srgb 1525 + 1526 + #: The colorspace in which to interpret terminal colors. The default 1527 + #: of srgb will cause colors to match those seen in web browsers. The 1528 + #: value of default will use whatever the native colorspace of the 1529 + #: display is. The value of displayp3 will use Apple's special 1530 + #: snowflake display P3 color space, which will result in over 1531 + #: saturated (brighter) colors with some color shift. Reloading 1532 + #: configuration will change this value only for newly created OS 1533 + #: windows. 1534 + 1535 + # linux_display_server auto 1536 + 1537 + #: Choose between Wayland and X11 backends. By default, an appropriate 1538 + #: backend based on the system state is chosen automatically. Set it 1539 + #: to x11 or wayland to force the choice. Changing this option by 1540 + #: reloading the config is not supported. 1541 + 1542 + #: }}} 1543 + 1544 + #: Keyboard shortcuts {{{ 1545 + 1546 + #: Keys are identified simply by their lowercase Unicode characters. 1547 + #: For example: a for the A key, [ for the left square bracket key, 1548 + #: etc. For functional keys, such as Enter or Escape, the names are 1549 + #: present at Functional key definitions 1550 + #: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional>. 1551 + #: For modifier keys, the names are ctrl (control, ⌃), shift (⇧), alt 1552 + #: (opt, option, ⌥), super (cmd, command, ⌘). See also: GLFW mods 1553 + #: <https://www.glfw.org/docs/latest/group__mods.html> 1554 + 1555 + #: On Linux you can also use XKB key names to bind keys that are not 1556 + #: supported by GLFW. See XKB keys 1557 + #: <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon- 1558 + #: keysyms.h> for a list of key names. The name to use is the part 1559 + #: after the XKB_KEY_ prefix. Note that you can only use an XKB key 1560 + #: name for keys that are not known as GLFW keys. 1561 + 1562 + #: Finally, you can use raw system key codes to map keys, again only 1563 + #: for keys that are not known as GLFW keys. To see the system key 1564 + #: code for a key, start kitty with the kitty --debug-input option, 1565 + #: kitty will output some debug text for every key event. In that text 1566 + #: look for native_code, the value of that becomes the key name in the 1567 + #: shortcut. For example: 1568 + 1569 + #: .. code-block:: none 1570 + 1571 + #: on_key_input: glfw key: 0x61 native_code: 0x61 action: PRESS mods: none text: 'a' 1572 + 1573 + #: Here, the key name for the A key is 0x61 and you can use it with:: 1574 + 1575 + #: map ctrl+0x61 something 1576 + 1577 + #: to map Ctrl+A to something. 1578 + 1579 + #: You can use the special action no_op to unmap a keyboard shortcut 1580 + #: that is assigned in the default configuration:: 1581 + 1582 + #: map kitty_mod+space no_op 1583 + 1584 + #: If you would like kitty to completely ignore a key event, not even 1585 + #: sending it to the program running in the terminal, map it to 1586 + #: discard_event:: 1587 + 1588 + #: map kitty_mod+f1 discard_event 1589 + 1590 + #: You can combine multiple actions to be triggered by a single 1591 + #: shortcut with combine action, using the syntax below:: 1592 + 1593 + #: map key combine <separator> action1 <separator> action2 <separator> action3 ... 1594 + 1595 + #: For example:: 1596 + 1597 + #: map kitty_mod+e combine : new_window : next_layout 1598 + 1599 + #: This will create a new window and switch to the next available 1600 + #: layout. 1601 + 1602 + #: You can use multi-key shortcuts with the syntax shown below:: 1603 + 1604 + #: map key1>key2>key3 action 1605 + 1606 + #: For example:: 1607 + 1608 + #: map ctrl+f>2 set_font_size 20 1609 + 1610 + #: The full list of actions that can be mapped to key presses is 1611 + #: available here <https://sw.kovidgoyal.net/kitty/actions/>. 1612 + 1613 + # kitty_mod ctrl+shift 1614 + 1615 + #: Special modifier key alias for default shortcuts. You can change 1616 + #: the value of this option to alter all default shortcuts that use 1617 + #: kitty_mod. 1618 + 1619 + # clear_all_shortcuts no 1620 + 1621 + #: Remove all shortcut definitions up to this point. Useful, for 1622 + #: instance, to remove the default shortcuts. 1623 + 1624 + # action_alias 1625 + 1626 + #: E.g. action_alias launch_tab launch --type=tab --cwd=current 1627 + 1628 + #: Define action aliases to avoid repeating the same options in 1629 + #: multiple mappings. Aliases can be defined for any action and will 1630 + #: be expanded recursively. For example, the above alias allows you to 1631 + #: create mappings to launch a new tab in the current working 1632 + #: directory without duplication:: 1633 + 1634 + #: map f1 launch_tab vim 1635 + #: map f2 launch_tab emacs 1636 + 1637 + #: Similarly, to alias kitten invocation:: 1638 + 1639 + #: action_alias hints kitten hints --hints-offset=0 1640 + 1641 + # kitten_alias 1642 + 1643 + #: E.g. kitten_alias hints hints --hints-offset=0 1644 + 1645 + #: Like action_alias above, but specifically for kittens. Generally, 1646 + #: prefer to use action_alias. This option is a legacy version, 1647 + #: present for backwards compatibility. It causes all invocations of 1648 + #: the aliased kitten to be substituted. So the example above will 1649 + #: cause all invocations of the hints kitten to have the --hints- 1650 + #: offset=0 option applied. 1651 + 1652 + #: Clipboard {{{ 1653 + 1654 + #: Copy to clipboard 1655 + 1656 + # map kitty_mod+c copy_to_clipboard 1657 + # map cmd+c copy_to_clipboard 1658 + 1659 + #:: There is also a copy_or_interrupt action that can be optionally 1660 + #:: mapped to Ctrl+C. It will copy only if there is a selection and 1661 + #:: send an interrupt otherwise. Similarly, 1662 + #:: copy_and_clear_or_interrupt will copy and clear the selection or 1663 + #:: send an interrupt if there is no selection. 1664 + 1665 + #: Paste from clipboard 1666 + 1667 + # map kitty_mod+v paste_from_clipboard 1668 + # map cmd+v paste_from_clipboard 1669 + 1670 + #: Paste from selection 1671 + 1672 + # map kitty_mod+s paste_from_selection 1673 + # map shift+insert paste_from_selection 1674 + 1675 + #: Pass selection to program 1676 + 1677 + # map kitty_mod+o pass_selection_to_program 1678 + 1679 + #:: You can also pass the contents of the current selection to any 1680 + #:: program with pass_selection_to_program. By default, the system's 1681 + #:: open program is used, but you can specify your own, the selection 1682 + #:: will be passed as a command line argument to the program. For 1683 + #:: example:: 1684 + 1685 + #:: map kitty_mod+o pass_selection_to_program firefox 1686 + 1687 + #:: You can pass the current selection to a terminal program running 1688 + #:: in a new kitty window, by using the @selection placeholder:: 1689 + 1690 + #:: map kitty_mod+y new_window less @selection 1691 + 1692 + #: }}} 1693 + 1694 + #: Scrolling {{{ 1695 + 1696 + #: Scroll line up 1697 + 1698 + # map kitty_mod+up scroll_line_up 1699 + # map kitty_mod+k scroll_line_up 1700 + # map opt+cmd+page_up scroll_line_up 1701 + # map cmd+up scroll_line_up 1702 + 1703 + #: Scroll line down 1704 + 1705 + # map kitty_mod+down scroll_line_down 1706 + # map kitty_mod+j scroll_line_down 1707 + # map opt+cmd+page_down scroll_line_down 1708 + # map cmd+down scroll_line_down 1709 + 1710 + #: Scroll page up 1711 + 1712 + # map kitty_mod+page_up scroll_page_up 1713 + # map cmd+page_up scroll_page_up 1714 + 1715 + #: Scroll page down 1716 + 1717 + # map kitty_mod+page_down scroll_page_down 1718 + # map cmd+page_down scroll_page_down 1719 + 1720 + #: Scroll to top 1721 + 1722 + # map kitty_mod+home scroll_home 1723 + # map cmd+home scroll_home 1724 + 1725 + #: Scroll to bottom 1726 + 1727 + # map kitty_mod+end scroll_end 1728 + # map cmd+end scroll_end 1729 + 1730 + #: Scroll to previous shell prompt 1731 + 1732 + # map kitty_mod+z scroll_to_prompt -1 1733 + 1734 + #:: Use a parameter of 0 for scroll_to_prompt to scroll to the last 1735 + #:: jumped to or the last clicked position. Requires shell 1736 + #:: integration <https://sw.kovidgoyal.net/kitty/shell-integration/> 1737 + #:: to work. 1738 + 1739 + #: Scroll to next shell prompt 1740 + 1741 + # map kitty_mod+x scroll_to_prompt 1 1742 + 1743 + #: Browse scrollback buffer in pager 1744 + 1745 + # map kitty_mod+h show_scrollback 1746 + 1747 + #:: You can pipe the contents of the current screen and history 1748 + #:: buffer as STDIN to an arbitrary program using launch --stdin- 1749 + #:: source. For example, the following opens the scrollback buffer in 1750 + #:: less in an overlay window:: 1751 + 1752 + #:: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R 1753 + 1754 + #:: For more details on piping screen and buffer contents to external 1755 + #:: programs, see launch <https://sw.kovidgoyal.net/kitty/launch/>. 1756 + 1757 + #: Browse output of the last shell command in pager 1758 + 1759 + # map kitty_mod+g show_last_command_output 1760 + 1761 + #:: You can also define additional shortcuts to get the command 1762 + #:: output. For example, to get the first command output on screen:: 1763 + 1764 + #:: map f1 show_first_command_output_on_screen 1765 + 1766 + #:: To get the command output that was last accessed by a keyboard 1767 + #:: action or mouse action:: 1768 + 1769 + #:: map f1 show_last_visited_command_output 1770 + 1771 + #:: You can pipe the output of the last command run in the shell 1772 + #:: using the launch action. For example, the following opens the 1773 + #:: output in less in an overlay window:: 1774 + 1775 + #:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R 1776 + 1777 + #:: To get the output of the first command on the screen, use 1778 + #:: @first_cmd_output_on_screen. To get the output of the last jumped 1779 + #:: to command, use @last_visited_cmd_output. 1780 + 1781 + #:: Requires shell integration 1782 + #:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work. 1783 + 1784 + #: }}} 1785 + 1786 + #: Window management {{{ 1787 + 1788 + #: New window 1789 + 1790 + # map kitty_mod+enter new_window 1791 + # map cmd+enter new_window 1792 + 1793 + #:: You can open a new kitty window running an arbitrary program, for 1794 + #:: example:: 1795 + 1796 + #:: map kitty_mod+y launch mutt 1797 + 1798 + #:: You can open a new window with the current working directory set 1799 + #:: to the working directory of the current window using:: 1800 + 1801 + #:: map ctrl+alt+enter launch --cwd=current 1802 + 1803 + #:: You can open a new window that is allowed to control kitty via 1804 + #:: the kitty remote control facility with launch --allow-remote- 1805 + #:: control. Any programs running in that window will be allowed to 1806 + #:: control kitty. For example:: 1807 + 1808 + #:: map ctrl+enter launch --allow-remote-control some_program 1809 + 1810 + #:: You can open a new window next to the currently active window or 1811 + #:: as the first window, with:: 1812 + 1813 + #:: map ctrl+n launch --location=neighbor 1814 + #:: map ctrl+f launch --location=first 1815 + 1816 + #:: For more details, see launch 1817 + #:: <https://sw.kovidgoyal.net/kitty/launch/>. 1818 + 1819 + #: New OS window 1820 + 1821 + # map kitty_mod+n new_os_window 1822 + # map cmd+n new_os_window 1823 + 1824 + #:: Works like new_window above, except that it opens a top-level OS 1825 + #:: window. In particular you can use new_os_window_with_cwd to open 1826 + #:: a window with the current working directory. 1827 + 1828 + #: Close window 1829 + 1830 + # map kitty_mod+w close_window 1831 + # map shift+cmd+d close_window 1832 + 1833 + #: Next window 1834 + 1835 + # map kitty_mod+] next_window 1836 + 1837 + #: Previous window 1838 + 1839 + # map kitty_mod+[ previous_window 1840 + 1841 + #: Move window forward 1842 + 1843 + # map kitty_mod+f move_window_forward 1844 + 1845 + #: Move window backward 1846 + 1847 + # map kitty_mod+b move_window_backward 1848 + 1849 + #: Move window to top 1850 + 1851 + # map kitty_mod+` move_window_to_top 1852 + 1853 + #: Start resizing window 1854 + 1855 + # map kitty_mod+r start_resizing_window 1856 + # map cmd+r start_resizing_window 1857 + 1858 + #: First window 1859 + 1860 + # map kitty_mod+1 first_window 1861 + # map cmd+1 first_window 1862 + 1863 + #: Second window 1864 + 1865 + # map kitty_mod+2 second_window 1866 + # map cmd+2 second_window 1867 + 1868 + #: Third window 1869 + 1870 + # map kitty_mod+3 third_window 1871 + # map cmd+3 third_window 1872 + 1873 + #: Fourth window 1874 + 1875 + # map kitty_mod+4 fourth_window 1876 + # map cmd+4 fourth_window 1877 + 1878 + #: Fifth window 1879 + 1880 + # map kitty_mod+5 fifth_window 1881 + # map cmd+5 fifth_window 1882 + 1883 + #: Sixth window 1884 + 1885 + # map kitty_mod+6 sixth_window 1886 + # map cmd+6 sixth_window 1887 + 1888 + #: Seventh window 1889 + 1890 + # map kitty_mod+7 seventh_window 1891 + # map cmd+7 seventh_window 1892 + 1893 + #: Eight window 1894 + 1895 + # map kitty_mod+8 eighth_window 1896 + # map cmd+8 eighth_window 1897 + 1898 + #: Ninth window 1899 + 1900 + # map kitty_mod+9 ninth_window 1901 + # map cmd+9 ninth_window 1902 + 1903 + #: Tenth window 1904 + 1905 + # map kitty_mod+0 tenth_window 1906 + 1907 + #: Visually select and focus window 1908 + 1909 + # map kitty_mod+f7 focus_visible_window 1910 + 1911 + #:: Display overlay numbers and alphabets on the window, and switch 1912 + #:: the focus to the window when you press the key. When there are 1913 + #:: only two windows, the focus will be switched directly without 1914 + #:: displaying the overlay. You can change the overlay characters and 1915 + #:: their order with option visual_window_select_characters. 1916 + 1917 + #: Visually swap window with another 1918 + 1919 + # map kitty_mod+f8 swap_with_window 1920 + 1921 + #:: Works like focus_visible_window above, but swaps the window. 1922 + 1923 + #: }}} 1924 + 1925 + #: Tab management {{{ 1926 + 1927 + #: Next tab 1928 + 1929 + # map kitty_mod+right next_tab 1930 + # map shift+cmd+] next_tab 1931 + # map ctrl+tab next_tab 1932 + 1933 + #: Previous tab 1934 + 1935 + # map kitty_mod+left previous_tab 1936 + # map shift+cmd+[ previous_tab 1937 + # map ctrl+shift+tab previous_tab 1938 + 1939 + #: New tab 1940 + 1941 + # map kitty_mod+t new_tab 1942 + # map cmd+t new_tab 1943 + 1944 + #: Close tab 1945 + 1946 + # map kitty_mod+q close_tab 1947 + # map cmd+w close_tab 1948 + 1949 + #: Close OS window 1950 + 1951 + # map shift+cmd+w close_os_window 1952 + 1953 + #: Move tab forward 1954 + 1955 + # map kitty_mod+. move_tab_forward 1956 + 1957 + #: Move tab backward 1958 + 1959 + # map kitty_mod+, move_tab_backward 1960 + 1961 + #: Set tab title 1962 + 1963 + # map kitty_mod+alt+t set_tab_title 1964 + # map shift+cmd+i set_tab_title 1965 + 1966 + 1967 + #: You can also create shortcuts to go to specific tabs, with 1 being 1968 + #: the first tab, 2 the second tab and -1 being the previously active 1969 + #: tab, and any number larger than the last tab being the last tab:: 1970 + 1971 + #: map ctrl+alt+1 goto_tab 1 1972 + #: map ctrl+alt+2 goto_tab 2 1973 + 1974 + #: Just as with new_window above, you can also pass the name of 1975 + #: arbitrary commands to run when using new_tab and new_tab_with_cwd. 1976 + #: Finally, if you want the new tab to open next to the current tab 1977 + #: rather than at the end of the tabs list, use:: 1978 + 1979 + #: map ctrl+t new_tab !neighbor [optional cmd to run] 1980 + #: }}} 1981 + 1982 + #: Layout management {{{ 1983 + 1984 + #: Next layout 1985 + 1986 + # map kitty_mod+l next_layout 1987 + 1988 + 1989 + #: You can also create shortcuts to switch to specific layouts:: 1990 + 1991 + #: map ctrl+alt+t goto_layout tall 1992 + #: map ctrl+alt+s goto_layout stack 1993 + 1994 + #: Similarly, to switch back to the previous layout:: 1995 + 1996 + #: map ctrl+alt+p last_used_layout 1997 + 1998 + #: There is also a toggle_layout action that switches to the named 1999 + #: layout or back to the previous layout if in the named layout. 2000 + #: Useful to temporarily "zoom" the active window by switching to the 2001 + #: stack layout:: 2002 + 2003 + #: map ctrl+alt+z toggle_layout stack 2004 + #: }}} 2005 + 2006 + #: Font sizes {{{ 2007 + 2008 + #: You can change the font size for all top-level kitty OS windows at 2009 + #: a time or only the current one. 2010 + 2011 + #: Increase font size 2012 + 2013 + # map kitty_mod+equal change_font_size all +2.0 2014 + # map kitty_mod+plus change_font_size all +2.0 2015 + # map kitty_mod+kp_add change_font_size all +2.0 2016 + # map cmd+plus change_font_size all +2.0 2017 + # map cmd+equal change_font_size all +2.0 2018 + # map shift+cmd+equal change_font_size all +2.0 2019 + 2020 + #: Decrease font size 2021 + 2022 + # map kitty_mod+minus change_font_size all -2.0 2023 + # map kitty_mod+kp_subtract change_font_size all -2.0 2024 + # map cmd+minus change_font_size all -2.0 2025 + # map shift+cmd+minus change_font_size all -2.0 2026 + 2027 + #: Reset font size 2028 + 2029 + # map kitty_mod+backspace change_font_size all 0 2030 + # map cmd+0 change_font_size all 0 2031 + 2032 + 2033 + #: To setup shortcuts for specific font sizes:: 2034 + 2035 + #: map kitty_mod+f6 change_font_size all 10.0 2036 + 2037 + #: To setup shortcuts to change only the current OS window's font 2038 + #: size:: 2039 + 2040 + #: map kitty_mod+f6 change_font_size current 10.0 2041 + #: }}} 2042 + 2043 + #: Select and act on visible text {{{ 2044 + 2045 + #: Use the hints kitten to select text and either pass it to an 2046 + #: external program or insert it into the terminal or copy it to the 2047 + #: clipboard. 2048 + 2049 + #: Open URL 2050 + 2051 + # map kitty_mod+e open_url_with_hints 2052 + 2053 + #:: Open a currently visible URL using the keyboard. The program used 2054 + #:: to open the URL is specified in open_url_with. 2055 + 2056 + #: Insert selected path 2057 + 2058 + # map kitty_mod+p>f kitten hints --type path --program - 2059 + 2060 + #:: Select a path/filename and insert it into the terminal. Useful, 2061 + #:: for instance to run git commands on a filename output from a 2062 + #:: previous git command. 2063 + 2064 + #: Open selected path 2065 + 2066 + # map kitty_mod+p>shift+f kitten hints --type path 2067 + 2068 + #:: Select a path/filename and open it with the default open program. 2069 + 2070 + #: Insert selected line 2071 + 2072 + # map kitty_mod+p>l kitten hints --type line --program - 2073 + 2074 + #:: Select a line of text and insert it into the terminal. Useful for 2075 + #:: the output of things like: `ls -1`. 2076 + 2077 + #: Insert selected word 2078 + 2079 + # map kitty_mod+p>w kitten hints --type word --program - 2080 + 2081 + #:: Select words and insert into terminal. 2082 + 2083 + #: Insert selected hash 2084 + 2085 + # map kitty_mod+p>h kitten hints --type hash --program - 2086 + 2087 + #:: Select something that looks like a hash and insert it into the 2088 + #:: terminal. Useful with git, which uses SHA1 hashes to identify 2089 + #:: commits. 2090 + 2091 + #: Open the selected file at the selected line 2092 + 2093 + # map kitty_mod+p>n kitten hints --type linenum 2094 + 2095 + #:: Select something that looks like filename:linenum and open it in 2096 + #:: vim at the specified line number. 2097 + 2098 + #: Open the selected hyperlink 2099 + 2100 + # map kitty_mod+p>y kitten hints --type hyperlink 2101 + 2102 + #:: Select a hyperlink (i.e. a URL that has been marked as such by 2103 + #:: the terminal program, for example, by `ls --hyperlink=auto`). 2104 + 2105 + 2106 + #: The hints kitten has many more modes of operation that you can map 2107 + #: to different shortcuts. For a full description see hints kitten 2108 + #: <https://sw.kovidgoyal.net/kitty/kittens/hints/>. 2109 + #: }}} 2110 + 2111 + #: Miscellaneous {{{ 2112 + 2113 + #: Show documentation 2114 + 2115 + # map kitty_mod+f1 show_kitty_doc overview 2116 + 2117 + #: Toggle fullscreen 2118 + 2119 + # map kitty_mod+f11 toggle_fullscreen 2120 + # map ctrl+cmd+f toggle_fullscreen 2121 + 2122 + #: Toggle maximized 2123 + 2124 + # map kitty_mod+f10 toggle_maximized 2125 + 2126 + #: Toggle macOS secure keyboard entry 2127 + 2128 + # map opt+cmd+s toggle_macos_secure_keyboard_entry 2129 + 2130 + #: Unicode input 2131 + 2132 + # map kitty_mod+u kitten unicode_input 2133 + # map ctrl+cmd+space kitten unicode_input 2134 + 2135 + #: Edit config file 2136 + 2137 + # map kitty_mod+f2 edit_config_file 2138 + # map cmd+, edit_config_file 2139 + 2140 + #: Open the kitty command shell 2141 + 2142 + # map kitty_mod+escape kitty_shell window 2143 + 2144 + #:: Open the kitty shell in a new window / tab / overlay / os_window 2145 + #:: to control kitty using commands. 2146 + 2147 + #: Increase background opacity 2148 + 2149 + # map kitty_mod+a>m set_background_opacity +0.1 2150 + 2151 + #: Decrease background opacity 2152 + 2153 + # map kitty_mod+a>l set_background_opacity -0.1 2154 + 2155 + #: Make background fully opaque 2156 + 2157 + # map kitty_mod+a>1 set_background_opacity 1 2158 + 2159 + #: Reset background opacity 2160 + 2161 + # map kitty_mod+a>d set_background_opacity default 2162 + 2163 + #: Reset the terminal 2164 + 2165 + # map kitty_mod+delete clear_terminal reset active 2166 + # map opt+cmd+r clear_terminal reset active 2167 + 2168 + #:: You can create shortcuts to clear/reset the terminal. For 2169 + #:: example:: 2170 + 2171 + #:: # Reset the terminal 2172 + #:: map f1 clear_terminal reset active 2173 + #:: # Clear the terminal screen by erasing all contents 2174 + #:: map f1 clear_terminal clear active 2175 + #:: # Clear the terminal scrollback by erasing it 2176 + #:: map f1 clear_terminal scrollback active 2177 + #:: # Scroll the contents of the screen into the scrollback 2178 + #:: map f1 clear_terminal scroll active 2179 + #:: # Clear everything up to the line with the cursor 2180 + #:: map f1 clear_terminal to_cursor active 2181 + 2182 + #:: If you want to operate on all kitty windows instead of just the 2183 + #:: current one, use all instead of active. 2184 + 2185 + #:: It is also possible to remap Ctrl+L to both scroll the current 2186 + #:: screen contents into the scrollback buffer and clear the screen, 2187 + #:: instead of just clearing the screen, for example, for ZSH add the 2188 + #:: following to ~/.zshrc: 2189 + 2190 + #:: .. code-block:: zsh 2191 + 2192 + #:: scroll-and-clear-screen() { 2193 + #:: printf '\n%.0s' {1..$LINES} 2194 + #:: zle clear-screen 2195 + #:: } 2196 + #:: zle -N scroll-and-clear-screen 2197 + #:: bindkey '^l' scroll-and-clear-screen 2198 + 2199 + #: Clear up to cursor line 2200 + 2201 + # map cmd+k clear_terminal to_cursor active 2202 + 2203 + #: Reload kitty.conf 2204 + 2205 + # map kitty_mod+f5 load_config_file 2206 + # map ctrl+cmd+, load_config_file 2207 + 2208 + #:: Reload kitty.conf, applying any changes since the last time it 2209 + #:: was loaded. Note that a handful of options cannot be dynamically 2210 + #:: changed and require a full restart of kitty. Particularly, when 2211 + #:: changing shortcuts for actions located on the macOS global menu 2212 + #:: bar, a full restart is needed. You can also map a keybinding to 2213 + #:: load a different config file, for example:: 2214 + 2215 + #:: map f5 load_config /path/to/alternative/kitty.conf 2216 + 2217 + #:: Note that all options from the original kitty.conf are discarded, 2218 + #:: in other words the new configuration *replace* the old ones. 2219 + 2220 + #: Debug kitty configuration 2221 + 2222 + # map kitty_mod+f6 debug_config 2223 + # map opt+cmd+, debug_config 2224 + 2225 + #:: Show details about exactly what configuration kitty is running 2226 + #:: with and its host environment. Useful for debugging issues. 2227 + 2228 + #: Send arbitrary text on key presses 2229 + 2230 + #:: E.g. map ctrl+shift+alt+h send_text all Hello World 2231 + 2232 + #:: You can tell kitty to send arbitrary (UTF-8) encoded text to the 2233 + #:: client program when pressing specified shortcut keys. For 2234 + #:: example:: 2235 + 2236 + #:: map ctrl+alt+a send_text all Special text 2237 + 2238 + #:: This will send "Special text" when you press the Ctrl+Alt+A key 2239 + #:: combination. The text to be sent is a python string literal so 2240 + #:: you can use escapes like \x1b to send control codes or \u21fb to 2241 + #:: send Unicode characters (or you can just input the Unicode 2242 + #:: characters directly as UTF-8 text). You can use `kitty +kitten 2243 + #:: show_key` to get the key escape codes you want to emulate. 2244 + 2245 + #:: The first argument to send_text is the keyboard modes in which to 2246 + #:: activate the shortcut. The possible values are normal, 2247 + #:: application, kitty or a comma separated combination of them. The 2248 + #:: modes normal and application refer to the DECCKM cursor key mode 2249 + #:: for terminals, and kitty refers to the kitty extended keyboard 2250 + #:: protocol. The special value all means all of them. 2251 + 2252 + #:: Some more examples:: 2253 + 2254 + #:: # Output a word and move the cursor to the start of the line (like typing and pressing Home) 2255 + #:: map ctrl+alt+a send_text normal Word\x1b[H 2256 + #:: map ctrl+alt+a send_text application Word\x1bOH 2257 + #:: # Run a command at a shell prompt (like typing the command and pressing Enter) 2258 + #:: map ctrl+alt+a send_text normal,application some command with arguments\r 2259 + 2260 + #: Open kitty Website 2261 + 2262 + # map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/ 2263 + 2264 + #: }}} 2265 + 2266 + #: }}}