clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

add kitty.conf and updates

sspaeti 0b930af2 045e8b7e

+1520 -4
+3
Brewfile
··· 2 2 tap "coursier/formulas" 3 3 tap "homebrew/bundle" 4 4 tap "homebrew/cask" 5 + tap "homebrew/cask-fonts" 5 6 tap "homebrew/cask-versions" 6 7 tap "homebrew/core" 7 8 tap "homebrew/services" ··· 19 20 brew "httping" 20 21 brew "hub" 21 22 brew "hugo" 23 + brew "lastpass-cli", args: ["HEAD"] 22 24 brew "neovim" 23 25 brew "node" 24 26 brew "okteto", link: false ··· 44 46 brew "minio/stable/minio" 45 47 brew "qmk/qmk/qmk" 46 48 cask "adoptopenjdk11" 49 + cask "font-hack-nerd-font" 47 50 cask "istat-menus" 48 51 cask "kitty" 49 52 cask "mark-text"
+4
backup_dotfiles.sh
··· 28 28 cp ~/Simon/Sync/SecondBrain/.obsidian/appearance.json $git/general/dotfiles/obsidian/appearance.json 29 29 cp ~/Simon/Sync/SecondBrain/.obsidian/app.json $git/general/dotfiles/obsidian/app.json 30 30 31 + 32 + #kitty 33 + cp ~/.config/kitty/kitty.conf $git/general/dotfiles/kitty/kitty.conf 34 + 31 35 brew bundle dump > $git/general/dotfiles/Brewfile -f 32 36 33 37
+3 -3
fzf/shell/key-bindings.zsh
··· 66 66 return $ret 67 67 } 68 68 zle -N fzf-file-widget 69 - bindkey -M emacs '^T' fzf-file-widget 70 - bindkey -M vicmd '^T' fzf-file-widget 71 - bindkey -M viins '^T' fzf-file-widget 69 + bindkey -M emacs '^E' fzf-file-widget 70 + bindkey -M vicmd '^E' fzf-file-widget 71 + bindkey -M viins '^E' fzf-file-widget 72 72 73 73 # ALT-C - cd into the selected directory 74 74 fzf-cd-widget() {
+1508
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 MesloLGS NF 10 + bold_font MesloLGS NF Bold 11 + bold_italic_font MesloLGS NF Bold Italic 12 + font_family MesloLGS NF Regular 13 + italic_font MesloLGS NF Italic 14 + 15 + # font_family monospace 16 + # bold_font auto 17 + # italic_font auto 18 + # bold_italic_font auto 19 + 20 + #: You can specify different fonts for the bold/italic/bold-italic 21 + #: variants. To get a full list of supported fonts use the `kitty 22 + #: list-fonts` command. By default they are derived automatically, by 23 + #: the OSes font system. Setting them manually is useful for font 24 + #: families that have many weight variants like Book, Medium, Thick, 25 + #: etc. For example:: 26 + 27 + #: font_family Operator Mono Book 28 + #: bold_font Operator Mono Medium 29 + #: italic_font Operator Mono Book Italic 30 + #: bold_italic_font Operator Mono Medium Italic 31 + 32 + # font_size 11.0 33 + 34 + #: Font size (in pts) 35 + 36 + # force_ltr no 37 + 38 + #: kitty does not support BIDI (bidirectional text), however, for RTL 39 + #: scripts, words are automatically displayed in RTL. That is to say, 40 + #: in an RTL script, the words "HELLO WORLD" display in kitty as 41 + #: "WORLD HELLO", and if you try to select a substring of an RTL- 42 + #: shaped string, you will get the character that would be there had 43 + #: the the string been LTR. For example, assuming the Hebrew word 44 + #: ירושלים, selecting the character that on the screen appears to be ם 45 + #: actually writes into the selection buffer the character י. kitty's 46 + #: default behavior is useful in conjunction with a filter to reverse 47 + #: the word order, however, if you wish to manipulate RTL glyphs, it 48 + #: can be very challenging to work with, so this option is provided to 49 + #: turn it off. Furthermore, this option can be used with the command 50 + #: line program GNU FriBidi 51 + #: <https://github.com/fribidi/fribidi#executable> to get BIDI 52 + #: support, because it will force kitty to always treat the text as 53 + #: LTR, which FriBidi expects for terminals. 54 + 55 + # adjust_line_height 0 56 + # adjust_column_width 0 57 + 58 + #: Change the size of each character cell kitty renders. You can use 59 + #: either numbers, which are interpreted as pixels or percentages 60 + #: (number followed by %), which are interpreted as percentages of the 61 + #: unmodified values. You can use negative pixels or percentages less 62 + #: than 100% to reduce sizes (but this might cause rendering 63 + #: artifacts). 64 + 65 + # adjust_baseline 0 66 + 67 + #: Adjust the vertical alignment of text (the height in the cell at 68 + #: which text is positioned). You can use either numbers, which are 69 + #: interpreted as pixels or a percentages (number followed by %), 70 + #: which are interpreted as the percentage of the line height. A 71 + #: positive value moves the baseline up, and a negative value moves 72 + #: them down. The underline and strikethrough positions are adjusted 73 + #: accordingly. 74 + 75 + symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols 76 + 77 + #: Map the specified unicode codepoints to a particular font. Useful 78 + #: if you need special rendering for some symbols, such as for 79 + #: Powerline. Avoids the need for patched fonts. Each unicode code 80 + #: point is specified in the form U+<code point in hexadecimal>. You 81 + #: can specify multiple code points, separated by commas and ranges 82 + #: separated by hyphens. symbol_map itself can be specified multiple 83 + #: times. Syntax is:: 84 + 85 + : symbol_map codepoints Font Meslo Nerd Font 86 + 87 + # disable_ligatures never 88 + 89 + #: Choose how you want to handle multi-character ligatures. The 90 + #: default is to always render them. You can tell kitty to not render 91 + #: them when the cursor is over them by using cursor to make editing 92 + #: easier, or have kitty never render them at all by using always, if 93 + #: you don't like them. The ligature strategy can be set per-window 94 + #: either using the kitty remote control facility or by defining 95 + #: shortcuts for it in kitty.conf, for example:: 96 + 97 + #: map alt+1 disable_ligatures_in active always 98 + #: map alt+2 disable_ligatures_in all never 99 + #: map alt+3 disable_ligatures_in tab cursor 100 + 101 + #: Note that this refers to programming ligatures, typically 102 + #: implemented using the calt OpenType feature. For disabling general 103 + #: ligatures, use the font_features setting. 104 + 105 + # font_features none 106 + 107 + #: Choose exactly which OpenType features to enable or disable. This 108 + #: is useful as some fonts might have features worthwhile in a 109 + #: terminal. For example, Fira Code Retina includes a discretionary 110 + #: feature, zero, which in that font changes the appearance of the 111 + #: zero (0), to make it more easily distinguishable from Ø. Fira Code 112 + #: Retina also includes other discretionary features known as 113 + #: Stylistic Sets which have the tags ss01 through ss20. 114 + 115 + #: For the exact syntax to use for individual features, see the 116 + #: Harfbuzz documentation <https://harfbuzz.github.io/harfbuzz-hb- 117 + #: common.html#hb-feature-from-string>. 118 + 119 + #: Note that this code is indexed by PostScript name, and not the font 120 + #: family. This allows you to define very precise feature settings; 121 + #: e.g. you can disable a feature in the italic font but not in the 122 + #: regular font. 123 + 124 + #: On Linux, these are read from the FontConfig database first and 125 + #: then this, setting is applied, so they can be configured in a 126 + #: single, central place. 127 + 128 + #: To get the PostScript name for a font, use kitty + list-fonts 129 + #: --psnames: 130 + 131 + #: .. code-block:: sh 132 + 133 + #: $ kitty + list-fonts --psnames | grep Fira 134 + #: Fira Code 135 + #: Fira Code Bold (FiraCode-Bold) 136 + #: Fira Code Light (FiraCode-Light) 137 + #: Fira Code Medium (FiraCode-Medium) 138 + #: Fira Code Regular (FiraCode-Regular) 139 + #: Fira Code Retina (FiraCode-Retina) 140 + 141 + #: The part in brackets is the PostScript name. 142 + 143 + #: Enable alternate zero and oldstyle numerals:: 144 + 145 + #: font_features FiraCode-Retina +zero +onum 146 + 147 + #: Enable only alternate zero:: 148 + 149 + #: font_features FiraCode-Retina +zero 150 + 151 + #: Disable the normal ligatures, but keep the calt feature which (in 152 + #: this font) breaks up monotony:: 153 + 154 + #: font_features TT2020StyleB-Regular -liga +calt 155 + 156 + #: In conjunction with force_ltr, you may want to disable Arabic 157 + #: shaping entirely, and only look at their isolated forms if they 158 + #: show up in a document. You can do this with e.g.:: 159 + 160 + #: font_features UnifontMedium +isol -medi -fina -init 161 + 162 + # box_drawing_scale 0.001, 1, 1.5, 2 163 + 164 + #: Change the sizes of the lines used for the box drawing unicode 165 + #: characters These values are in pts. They will be scaled by the 166 + #: monitor DPI to arrive at a pixel value. There must be four values 167 + #: corresponding to thin, normal, thick, and very thick lines. 168 + 169 + #: }}} 170 + 171 + #: Cursor customization {{{ 172 + 173 + # cursor #cccccc 174 + 175 + #: Default cursor color 176 + 177 + # cursor_text_color #111111 178 + 179 + #: Choose the color of text under the cursor. If you want it rendered 180 + #: with the background color of the cell underneath instead, use the 181 + #: special keyword: background 182 + 183 + # cursor_shape block 184 + 185 + #: The cursor shape can be one of (block, beam, underline). Note that 186 + #: when reloading the config this will be changed only if the cursor 187 + #: shape has not been set by the program running in the terminal. 188 + 189 + # cursor_beam_thickness 1.5 190 + 191 + #: Defines the thickness of the beam cursor (in pts) 192 + 193 + # cursor_underline_thickness 2.0 194 + 195 + #: Defines the thickness of the underline cursor (in pts) 196 + 197 + # cursor_blink_interval -1 198 + 199 + #: The interval (in seconds) at which to blink the cursor. Set to zero 200 + #: to disable blinking. Negative values mean use system default. Note 201 + #: that numbers smaller than repaint_delay will be limited to 202 + #: repaint_delay. 203 + 204 + # cursor_stop_blinking_after 15.0 205 + 206 + #: Stop blinking cursor after the specified number of seconds of 207 + #: keyboard inactivity. Set to zero to never stop blinking. 208 + 209 + #: }}} 210 + 211 + #: Scrollback {{{ 212 + 213 + # scrollback_lines 2000 214 + 215 + #: Number of lines of history to keep in memory for scrolling back. 216 + #: Memory is allocated on demand. Negative numbers are (effectively) 217 + #: infinite scrollback. Note that using very large scrollback is not 218 + #: recommended as it can slow down performance of the terminal and 219 + #: also use large amounts of RAM. Instead, consider using 220 + #: scrollback_pager_history_size. Note that on config reload if this 221 + #: is changed it will only affect newly created windows, not existing 222 + #: ones. 223 + 224 + # scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER 225 + 226 + #: Program with which to view scrollback in a new window. The 227 + #: scrollback buffer is passed as STDIN to this program. If you change 228 + #: it, make sure the program you use can handle ANSI escape sequences 229 + #: for colors and text formatting. INPUT_LINE_NUMBER in the command 230 + #: line above will be replaced by an integer representing which line 231 + #: should be at the top of the screen. Similarly CURSOR_LINE and 232 + #: CURSOR_COLUMN will be replaced by the current cursor position. 233 + 234 + # scrollback_pager_history_size 0 235 + 236 + #: Separate scrollback history size, used only for browsing the 237 + #: scrollback buffer (in MB). This separate buffer is not available 238 + #: for interactive scrolling but will be piped to the pager program 239 + #: when viewing scrollback buffer in a separate window. The current 240 + #: implementation stores the data in UTF-8, so approximatively 10000 241 + #: lines per megabyte at 100 chars per line, for pure ASCII text, 242 + #: unformatted text. A value of zero or less disables this feature. 243 + #: The maximum allowed size is 4GB. Note that on config reload if this 244 + #: is changed it will only affect newly created windows, not existing 245 + #: ones. 246 + 247 + # scrollback_fill_enlarged_window no 248 + 249 + #: Fill new space with lines from the scrollback buffer after 250 + #: enlarging a window. 251 + 252 + # wheel_scroll_multiplier 5.0 253 + 254 + #: Modify the amount scrolled by the mouse wheel. Note this is only 255 + #: used for low precision scrolling devices, not for high precision 256 + #: scrolling on platforms such as macOS and Wayland. Use negative 257 + #: numbers to change scroll direction. 258 + 259 + # touch_scroll_multiplier 1.0 260 + 261 + #: Modify the amount scrolled by a touchpad. Note this is only used 262 + #: for high precision scrolling devices on platforms such as macOS and 263 + #: Wayland. Use negative numbers to change scroll direction. 264 + 265 + #: }}} 266 + 267 + #: Mouse {{{ 268 + 269 + # mouse_hide_wait 3.0 270 + 271 + #: Hide mouse cursor after the specified number of seconds of the 272 + #: mouse not being used. Set to zero to disable mouse cursor hiding. 273 + #: Set to a negative value to hide the mouse cursor immediately when 274 + #: typing text. Disabled by default on macOS as getting it to work 275 + #: robustly with the ever-changing sea of bugs that is Cocoa is too 276 + #: much effort. 277 + 278 + # url_color #0087bd 279 + # url_style curly 280 + 281 + #: The color and style for highlighting URLs on mouse-over. url_style 282 + #: can be one of: none, single, double, curly 283 + 284 + # open_url_with default 285 + 286 + #: The program with which to open URLs that are clicked on. The 287 + #: special value default means to use the operating system's default 288 + #: URL handler. 289 + 290 + # url_prefixes http https file ftp gemini irc gopher mailto news git 291 + 292 + #: The set of URL prefixes to look for when detecting a URL under the 293 + #: mouse cursor. 294 + 295 + # detect_urls yes 296 + 297 + #: Detect URLs under the mouse. Detected URLs are highlighted with an 298 + #: underline and the mouse cursor becomes a hand over them. Even if 299 + #: this option is disabled, URLs are still clickable. 300 + 301 + # url_excluded_characters 302 + 303 + #: Additional characters to be disallowed from URLs, when detecting 304 + #: URLs under the mouse cursor. By default, all characters legal in 305 + #: URLs are allowed. 306 + 307 + # copy_on_select no 308 + 309 + #: Copy to clipboard or a private buffer on select. With this set to 310 + #: clipboard, simply selecting text with the mouse will cause the text 311 + #: to be copied to clipboard. Useful on platforms such as macOS that 312 + #: do not have the concept of primary selections. You can instead 313 + #: specify a name such as a1 to copy to a private kitty buffer 314 + #: instead. Map a shortcut with the paste_from_buffer action to paste 315 + #: from this private buffer. For example:: 316 + 317 + #: map cmd+shift+v paste_from_buffer a1 318 + 319 + #: Note that copying to the clipboard is a security risk, as all 320 + #: programs, including websites open in your browser can read the 321 + #: contents of the system clipboard. 322 + 323 + # strip_trailing_spaces never 324 + 325 + #: Remove spaces at the end of lines when copying to clipboard. A 326 + #: value of smart will do it when using normal selections, but not 327 + #: rectangle selections. always will always do it. 328 + 329 + # select_by_word_characters @-./_~?&=%+# 330 + 331 + #: Characters considered part of a word when double clicking. In 332 + #: addition to these characters any character that is marked as an 333 + #: alphanumeric character in the unicode database will be matched. 334 + 335 + # click_interval -1.0 336 + 337 + #: The interval between successive clicks to detect double/triple 338 + #: clicks (in seconds). Negative numbers will use the system default 339 + #: instead, if available, or fallback to 0.5. 340 + 341 + # focus_follows_mouse no 342 + 343 + #: Set the active window to the window under the mouse when moving the 344 + #: mouse around 345 + 346 + # pointer_shape_when_grabbed arrow 347 + 348 + #: The shape of the mouse pointer when the program running in the 349 + #: terminal grabs the mouse. Valid values are: arrow, beam and hand 350 + 351 + # default_pointer_shape beam 352 + 353 + #: The default shape of the mouse pointer. Valid values are: arrow, 354 + #: beam and hand 355 + 356 + # pointer_shape_when_dragging beam 357 + 358 + #: The default shape of the mouse pointer when dragging across text. 359 + #: Valid values are: arrow, beam and hand 360 + 361 + #: Mouse actions {{{ 362 + 363 + #: Mouse buttons can be remapped to perform arbitrary actions. The 364 + #: syntax for doing so is: 365 + 366 + #: .. code-block:: none 367 + 368 + #: mouse_map button-name event-type modes action 369 + 370 + #: Where ``button-name`` is one of ``left``, ``middle``, ``right`` or 371 + #: ``b1 ... b8`` with added keyboard modifiers, for example: 372 + #: ``ctrl+shift+left`` refers to holding the ctrl+shift keys while 373 + #: clicking with the left mouse button. The number ``b1 ... b8`` can 374 + #: be used to refer to upto eight buttons on a mouse. 375 + 376 + #: ``event-type`` is one ``press``, ``release``, ``doublepress``, 377 + #: ``triplepress``, ``click`` and ``doubleclick``. ``modes`` 378 + #: indicates whether the action is performed when the mouse is grabbed 379 + #: by the program running in the terminal, or not. It can have one or 380 + #: more or the values, ``grabbed,ungrabbed``. ``grabbed`` refers to 381 + #: when the program running in the terminal has requested mouse 382 + #: events. Note that the click and double click events have a delay of 383 + #: click_interval to disambiguate from double and triple presses. 384 + 385 + #: You can run kitty with the kitty --debug-input command line option 386 + #: to see mouse events. See the builtin actions below to get a sense 387 + #: of what is possible. 388 + 389 + #: If you want to unmap an action map it to ``no-op``. For example, to 390 + #: disable opening of URLs with a plain click:: 391 + 392 + #: mouse_map left click ungrabbed no-op 393 + 394 + #: .. note:: 395 + #: Once a selection is started, releasing the button that started it will 396 + #: automatically end it and no release event will be dispatched. 397 + 398 + # clear_all_mouse_actions no 399 + 400 + #: You can have kitty remove all mouse actions seen up to this point. 401 + #: Useful, for instance, to remove the default mouse actions. 402 + 403 + # mouse_map left click ungrabbed mouse_click_url_or_select 404 + # mouse_map shift+left click grabbed,ungrabbed mouse_click_url_or_select 405 + # mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_click_url 406 + 407 + #: Variant with ctrl+shift is present because the simple click based 408 + #: version has an unavoidable delay of click_interval, to disambiguate 409 + #: clicks from double clicks. 410 + 411 + # mouse_map ctrl+shift+left press grabbed discard_event 412 + 413 + #: Prevent this press event from being sent to the program that has 414 + #: grabbed the mouse, as the corresponding release event is used to 415 + #: open a URL. 416 + 417 + # mouse_map middle release ungrabbed paste_from_selection 418 + # mouse_map left press ungrabbed mouse_selection normal 419 + # mouse_map ctrl+alt+left press ungrabbed mouse_selection rectangle 420 + # mouse_map left doublepress ungrabbed mouse_selection word 421 + # mouse_map left triplepress ungrabbed mouse_selection line 422 + 423 + #: Select the entire line 424 + 425 + # mouse_map ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point 426 + 427 + #: Select from the clicked point to the end of the line 428 + 429 + # mouse_map right press ungrabbed mouse_selection extend 430 + 431 + #: If you want only the end of the selection to be moved instead of 432 + #: the nearest boundary, use move-end instead of extend. 433 + 434 + # mouse_map shift+middle release ungrabbed,grabbed paste_selection 435 + # mouse_map shift+left press ungrabbed,grabbed mouse_selection normal 436 + # mouse_map shift+ctrl+alt+left press ungrabbed,grabbed mouse_selection rectangle 437 + # mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word 438 + # mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line 439 + 440 + #: Select the entire line 441 + 442 + # mouse_map shift+ctrl+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point 443 + 444 + #: Select from the clicked point to the end of the line 445 + 446 + # mouse_map shift+right press ungrabbed,grabbed mouse_selection extend 447 + #: }}} 448 + 449 + #: }}} 450 + 451 + #: Performance tuning {{{ 452 + 453 + # repaint_delay 10 454 + 455 + #: Delay (in milliseconds) between screen updates. Decreasing it, 456 + #: increases frames-per-second (FPS) at the cost of more CPU usage. 457 + #: The default value yields ~100 FPS which is more than sufficient for 458 + #: most uses. Note that to actually achieve 100 FPS you have to either 459 + #: set sync_to_monitor to no or use a monitor with a high refresh 460 + #: rate. Also, to minimize latency when there is pending input to be 461 + #: processed, repaint_delay is ignored. 462 + 463 + # input_delay 3 464 + 465 + #: Delay (in milliseconds) before input from the program running in 466 + #: the terminal is processed. Note that decreasing it will increase 467 + #: responsiveness, but also increase CPU usage and might cause flicker 468 + #: in full screen programs that redraw the entire screen on each loop, 469 + #: because kitty is so fast that partial screen updates will be drawn. 470 + 471 + # sync_to_monitor yes 472 + 473 + #: Sync screen updates to the refresh rate of the monitor. This 474 + #: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing) 475 + #: when scrolling. However, it limits the rendering speed to the 476 + #: refresh rate of your monitor. With a very high speed mouse/high 477 + #: keyboard repeat rate, you may notice some slight input latency. If 478 + #: so, set this to no. 479 + 480 + #: }}} 481 + 482 + #: Terminal bell {{{ 483 + 484 + enable_audio_bell no 485 + 486 + #: Enable/disable the audio bell. Useful in environments that require 487 + #: silence. 488 + 489 + # visual_bell_duration 0.0 490 + 491 + #: Visual bell duration. Flash the screen when a bell occurs for the 492 + #: specified number of seconds. Set to zero to disable. 493 + 494 + # window_alert_on_bell yes 495 + 496 + #: Request window attention on bell. Makes the dock icon bounce on 497 + #: macOS or the taskbar flash on linux. 498 + 499 + # bell_on_tab yes 500 + 501 + #: Show a bell symbol on the tab if a bell occurs in one of the 502 + #: windows in the tab and the window is not the currently focused 503 + #: window 504 + 505 + # command_on_bell none 506 + 507 + #: Program to run when a bell occurs. The environment variable 508 + #: KITTY_CHILD_CMDLINE can be used to get the program running in the 509 + #: window in which the bell occurred. 510 + 511 + #: }}} 512 + 513 + #: Window layout {{{ 514 + 515 + # remember_window_size yes 516 + # initial_window_width 640 517 + # initial_window_height 400 518 + 519 + #: If enabled, the window size will be remembered so that new 520 + #: instances of kitty will have the same size as the previous 521 + #: instance. If disabled, the window will initially have size 522 + #: configured by initial_window_width/height, in pixels. You can use a 523 + #: suffix of "c" on the width/height values to have them interpreted 524 + #: as number of cells instead of pixels. 525 + 526 + # enabled_layouts * 527 + 528 + #: The enabled window layouts. A comma separated list of layout names. 529 + #: The special value all means all layouts. The first listed layout 530 + #: will be used as the startup layout. Default configuration is all 531 + #: layouts in alphabetical order. For a list of available layouts, see 532 + #: the https://sw.kovidgoyal.net/kitty/overview/#layouts. 533 + 534 + # window_resize_step_cells 2 535 + # window_resize_step_lines 2 536 + 537 + #: The step size (in units of cell width/cell height) to use when 538 + #: resizing windows. The cells value is used for horizontal resizing 539 + #: and the lines value for vertical resizing. 540 + 541 + # window_border_width 0.5pt 542 + 543 + #: The width of window borders. Can be either in pixels (px) or pts 544 + #: (pt). Values in pts will be rounded to the nearest number of pixels 545 + #: based on screen resolution. If not specified the unit is assumed to 546 + #: be pts. Note that borders are displayed only when more than one 547 + #: window is visible. They are meant to separate multiple windows. 548 + 549 + # draw_minimal_borders yes 550 + 551 + #: Draw only the minimum borders needed. This means that only the 552 + #: minimum needed borders for inactive windows are drawn. That is only 553 + #: the borders that separate the inactive window from a neighbor. Note 554 + #: that setting a non-zero window margin overrides this and causes all 555 + #: borders to be drawn. 556 + 557 + # window_margin_width 0 558 + 559 + #: The window margin (in pts) (blank area outside the border). A 560 + #: single value sets all four sides. Two values set the vertical and 561 + #: horizontal sides. Three values set top, horizontal and bottom. Four 562 + #: values set top, right, bottom and left. 563 + 564 + # single_window_margin_width -1 565 + 566 + #: The window margin (in pts) to use when only a single window is 567 + #: visible. Negative values will cause the value of 568 + #: window_margin_width to be used instead. A single value sets all 569 + #: four sides. Two values set the vertical and horizontal sides. Three 570 + #: values set top, horizontal and bottom. Four values set top, right, 571 + #: bottom and left. 572 + 573 + # window_padding_width 0 574 + 575 + #: The window padding (in pts) (blank area between the text and the 576 + #: window border). A single value sets all four sides. Two values set 577 + #: the vertical and horizontal sides. Three values set top, horizontal 578 + #: and bottom. Four values set top, right, bottom and left. 579 + 580 + # placement_strategy center 581 + 582 + #: When the window size is not an exact multiple of the cell size, the 583 + #: cell area of the terminal window will have some extra padding on 584 + #: the sides. You can control how that padding is distributed with 585 + #: this option. Using a value of center means the cell area will be 586 + #: placed centrally. A value of top-left means the padding will be on 587 + #: only the bottom and right edges. 588 + 589 + # active_border_color #00ff00 590 + 591 + #: The color for the border of the active window. Set this to none to 592 + #: not draw borders around the active window. 593 + 594 + # inactive_border_color #cccccc 595 + 596 + #: The color for the border of inactive windows 597 + 598 + # bell_border_color #ff5a00 599 + 600 + #: The color for the border of inactive windows in which a bell has 601 + #: occurred 602 + 603 + # inactive_text_alpha 1.0 604 + 605 + #: Fade the text in inactive windows by the specified amount (a number 606 + #: between zero and one, with zero being fully faded). 607 + 608 + # hide_window_decorations no 609 + 610 + #: Hide the window decorations (title-bar and window borders) with 611 + #: yes. On macOS, titlebar-only can be used to only hide the titlebar. 612 + #: Whether this works and exactly what effect it has depends on the 613 + #: window manager/operating system. Note that the effects of changing 614 + #: this setting when reloading config are undefined. 615 + 616 + # resize_debounce_time 0.1 617 + 618 + #: The time (in seconds) to wait before redrawing the screen when a 619 + #: resize event is received. On platforms such as macOS, where the 620 + #: operating system sends events corresponding to the start and end of 621 + #: a resize, this number is ignored. 622 + 623 + # resize_draw_strategy static 624 + 625 + #: Choose how kitty draws a window while a resize is in progress. A 626 + #: value of static means draw the current window contents, mostly 627 + #: unchanged. A value of scale means draw the current window contents 628 + #: scaled. A value of blank means draw a blank window. A value of size 629 + #: means show the window size in cells. 630 + 631 + # resize_in_steps no 632 + 633 + #: Resize the OS window in steps as large as the cells, instead of 634 + #: with the usual pixel accuracy. Combined with an 635 + #: initial_window_width and initial_window_height in number of cells, 636 + #: this option can be used to keep the margins as small as possible 637 + #: when resizing the OS window. Note that this does not currently work 638 + #: on Wayland. 639 + 640 + # confirm_os_window_close 0 641 + 642 + #: Ask for confirmation when closing an OS window or a tab that has at 643 + #: least this number of kitty windows in it. A value of zero disables 644 + #: confirmation. This confirmation also applies to requests to quit 645 + #: the entire application (all OS windows, via the quit action). 646 + 647 + #: }}} 648 + 649 + #: Tab bar {{{ 650 + 651 + # tab_bar_edge bottom 652 + 653 + #: Which edge to show the tab bar on, top or bottom 654 + 655 + # tab_bar_margin_width 0.0 656 + 657 + #: The margin to the left and right of the tab bar (in pts) 658 + 659 + # tab_bar_margin_height 0.0 0.0 660 + 661 + #: The margin above and below the tab bar (in pts). The first number 662 + #: is the margin between the edge of the OS Window and the tab bar and 663 + #: the second number is the margin between the tab bar and the 664 + #: contents of the current tab. 665 + 666 + # tab_bar_style fade 667 + 668 + #: The tab bar style, can be one of: 669 + 670 + #: fade 671 + #: Each tab's edges fade into the background color (see tab_fade) 672 + #: slant 673 + #: Tabs look like the tabs in a physical file 674 + #: separator 675 + #: Tabs are separated by a configurable separator (see tab_separator) 676 + #: powerline 677 + #: Tabs are shown as a continuous line with "fancy" separators (see tab_powerline_style) 678 + #: hidden 679 + #: The tab bar is hidden. If you use this, you might want to create a mapping 680 + #: for the https://sw.kovidgoyal.net/kitty/actions/#select-tab action which presents you with a list 681 + #: of tabs and allows for easy switching to a tab. 682 + 683 + # tab_bar_min_tabs 2 684 + 685 + #: The minimum number of tabs that must exist before the tab bar is 686 + #: shown 687 + 688 + # tab_switch_strategy previous 689 + 690 + #: The algorithm to use when switching to a tab when the current tab 691 + #: is closed. The default of previous will switch to the last used 692 + #: tab. A value of left will switch to the tab to the left of the 693 + #: closed tab. A value of right will switch to the tab to the right of 694 + #: the closed tab. A value of last will switch to the right-most tab. 695 + 696 + # tab_fade 0.25 0.5 0.75 1 697 + 698 + #: Control how each tab fades into the background when using fade for 699 + #: the tab_bar_style. Each number is an alpha (between zero and one) 700 + #: that controls how much the corresponding cell fades into the 701 + #: background, with zero being no fade and one being full fade. You 702 + #: can change the number of cells used by adding/removing entries to 703 + #: this list. 704 + 705 + # tab_separator " ┇" 706 + 707 + #: The separator between tabs in the tab bar when using separator as 708 + #: the tab_bar_style. 709 + 710 + # tab_powerline_style angled 711 + 712 + #: The powerline separator style between tabs in the tab bar when 713 + #: using powerline as the tab_bar_style, can be one of: angled, 714 + #: slanted, or round. 715 + 716 + # tab_activity_symbol none 717 + 718 + #: Some text or a unicode symbol to show on the tab if a window in the 719 + #: tab that does not have focus has some activity. If you want to use 720 + #: leading or trailing spaces surround the text with quotes. 721 + 722 + # tab_title_template "{title}" 723 + 724 + #: A template to render the tab title. The default just renders the 725 + #: title. If you wish to include the tab-index as well, use something 726 + #: like: {index}: {title}. Useful if you have shortcuts mapped for 727 + #: goto_tab N. If you prefer to see the index as a superscript, use 728 + #: {sup.index}. In addition you can use {layout_name} for the current 729 + #: layout name, {num_windows} for the number of windows in the tab and 730 + #: {num_window_groups} for the number of window groups (not counting 731 + #: overlay windows) in the tab. Note that formatting is done by 732 + #: Python's string formatting machinery, so you can use, for instance, 733 + #: {layout_name[:2].upper()} to show only the first two letters of the 734 + #: layout name, upper-cased. If you want to style the text, you can 735 + #: use styling directives, for example: 736 + #: {fmt.fg.red}red{fmt.fg.default}normal{fmt.bg._00FF00}green 737 + #: bg{fmt.bg.normal}. Similarly, for bold and italic: 738 + #: {fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}. 739 + 740 + # active_tab_title_template none 741 + 742 + #: Template to use for active tabs, if not specified falls back to 743 + #: tab_title_template. 744 + 745 + # active_tab_foreground #000 746 + # active_tab_background #eee 747 + # active_tab_font_style bold-italic 748 + # inactive_tab_foreground #444 749 + # inactive_tab_background #999 750 + # inactive_tab_font_style normal 751 + 752 + #: Tab bar colors and styles 753 + 754 + # tab_bar_background none 755 + 756 + #: Background color for the tab bar. Defaults to using the terminal 757 + #: background color. 758 + 759 + #: }}} 760 + 761 + #: Color scheme {{{ 762 + 763 + # foreground #dddddd 764 + # background #000000 765 + 766 + #: The foreground and background colors 767 + 768 + # background_opacity 1.0 769 + 770 + #: The opacity of the background. A number between 0 and 1, where 1 is 771 + #: opaque and 0 is fully transparent. This will only work if 772 + #: supported by the OS (for instance, when using a compositor under 773 + #: X11). Note that it only sets the background color's opacity in 774 + #: cells that have the same background color as the default terminal 775 + #: background. This is so that things like the status bar in vim, 776 + #: powerline prompts, etc. still look good. But it means that if you 777 + #: use a color theme with a background color in your editor, it will 778 + #: not be rendered as transparent. Instead you should change the 779 + #: default background color in your kitty config and not use a 780 + #: background color in the editor color scheme. Or use the escape 781 + #: codes to set the terminals default colors in a shell script to 782 + #: launch your editor. Be aware that using a value less than 1.0 is a 783 + #: (possibly significant) performance hit. If you want to dynamically 784 + #: change transparency of windows set dynamic_background_opacity to 785 + #: yes (this is off by default as it has a performance cost). Changing 786 + #: this setting when reloading the config will only work if 787 + #: dynamic_background_opacity was enabled in the original config. 788 + 789 + # background_image none 790 + 791 + #: Path to a background image. Must be in PNG format. 792 + 793 + # background_image_layout tiled 794 + 795 + #: Whether to tile or scale the background image. 796 + 797 + # background_image_linear no 798 + 799 + #: When background image is scaled, whether linear interpolation 800 + #: should be used. 801 + 802 + # dynamic_background_opacity no 803 + 804 + #: Allow changing of the background_opacity dynamically, using either 805 + #: keyboard shortcuts (increase_background_opacity and 806 + #: decrease_background_opacity) or the remote control facility. 807 + #: Changing this setting by reloading the config is not supported. 808 + 809 + # background_tint 0.0 810 + 811 + #: How much to tint the background image by the background color. The 812 + #: tint is applied only under the text area, not margin/borders. Makes 813 + #: it easier to read the text. Tinting is done using the current 814 + #: background color for each window. This setting applies only if 815 + #: background_opacity is set and transparent windows are supported or 816 + #: background_image is set. 817 + 818 + # dim_opacity 0.75 819 + 820 + #: How much to dim text that has the DIM/FAINT attribute set. One 821 + #: means no dimming and zero means fully dimmed (i.e. invisible). 822 + 823 + # selection_foreground #000000 824 + 825 + #: The foreground for text selected with the mouse. A value of none 826 + #: means to leave the color unchanged. 827 + 828 + # selection_background #fffacd 829 + 830 + #: The background for text selected with the mouse. 831 + 832 + #: The color table {{{ 833 + 834 + #: The 256 terminal colors. There are 8 basic colors, each color has a 835 + #: dull and bright version, for the first 16 colors. You can set the 836 + #: remaining 240 colors as color16 to color255. 837 + 838 + # color0 #000000 839 + # color8 #767676 840 + 841 + #: black 842 + 843 + # color1 #cc0403 844 + # color9 #f2201f 845 + 846 + #: red 847 + 848 + # color2 #19cb00 849 + # color10 #23fd00 850 + 851 + #: green 852 + 853 + # color3 #cecb00 854 + # color11 #fffd00 855 + 856 + #: yellow 857 + 858 + # color4 #0d73cc 859 + # color12 #1a8fff 860 + 861 + #: blue 862 + 863 + # color5 #cb1ed1 864 + # color13 #fd28ff 865 + 866 + #: magenta 867 + 868 + # color6 #0dcdcd 869 + # color14 #14ffff 870 + 871 + #: cyan 872 + 873 + # color7 #dddddd 874 + # color15 #ffffff 875 + 876 + #: white 877 + 878 + # mark1_foreground black 879 + 880 + #: Color for marks of type 1 881 + 882 + # mark1_background #98d3cb 883 + 884 + #: Color for marks of type 1 (light steel blue) 885 + 886 + # mark2_foreground black 887 + 888 + #: Color for marks of type 2 889 + 890 + # mark2_background #f2dcd3 891 + 892 + #: Color for marks of type 1 (beige) 893 + 894 + # mark3_foreground black 895 + 896 + #: Color for marks of type 3 897 + 898 + # mark3_background #f274bc 899 + 900 + #: Color for marks of type 3 (violet) 901 + 902 + #: }}} 903 + 904 + #: }}} 905 + 906 + #: Advanced {{{ 907 + 908 + # shell . 909 + 910 + #: The shell program to execute. The default value of . means to use 911 + #: whatever shell is set as the default shell for the current user. 912 + #: Note that on macOS if you change this, you might need to add 913 + #: --login and --interactive to ensure that the shell starts in 914 + #: interactive mode and reads its startup rc files. 915 + 916 + # editor . 917 + 918 + #: The terminal editor (such as ``vim`` or ``nano``) to use when 919 + #: editing the kitty config file or similar tasks. 920 + 921 + #: The default value of . means to use the environment variables 922 + #: VISUAL and EDITOR in that order. If these variables aren't set, 923 + #: kitty will run your shell (``$SHELL -l -i -c env``) to see if your 924 + #: shell config files set VISUAL or EDITOR. If that doesn't work, 925 + #: kitty will cycle through various known editors (``vim``, ``emacs``, 926 + #: etc) and take the first one that exists on your system. 927 + 928 + # close_on_child_death no 929 + 930 + #: Close the window when the child process (shell) exits. If no (the 931 + #: default), the terminal will remain open when the child exits as 932 + #: long as there are still processes outputting to the terminal (for 933 + #: example disowned or backgrounded processes). If yes, the window 934 + #: will close as soon as the child process exits. Note that setting it 935 + #: to yes means that any background processes still using the terminal 936 + #: can fail silently because their stdout/stderr/stdin no longer work. 937 + 938 + # allow_remote_control no 939 + 940 + #: Allow other programs to control kitty. If you turn this on other 941 + #: programs can control all aspects of kitty, including sending text 942 + #: to kitty windows, opening new windows, closing windows, reading the 943 + #: content of windows, etc. Note that this even works over ssh 944 + #: connections. You can chose to either allow any program running 945 + #: within kitty to control it, with yes or only programs that connect 946 + #: to the socket specified with the kitty --listen-on command line 947 + #: option, if you use the value socket-only. The latter is useful if 948 + #: you want to prevent programs running on a remote computer over ssh 949 + #: from controlling kitty. Reloading the config will not affect this 950 + #: setting. 951 + 952 + # listen_on none 953 + 954 + #: Tell kitty to listen to the specified unix/tcp socket for remote 955 + #: control connections. Note that this will apply to all kitty 956 + #: instances. It can be overridden by the kitty --listen-on command 957 + #: line flag. This option accepts only UNIX sockets, such as 958 + #: unix:${TEMP}/mykitty or (on Linux) unix:@mykitty. Environment 959 + #: variables are expanded. If {kitty_pid} is present then it is 960 + #: replaced by the PID of the kitty process, otherwise the PID of the 961 + #: kitty process is appended to the value, with a hyphen. This option 962 + #: is ignored unless you also set allow_remote_control to enable 963 + #: remote control. See the help for kitty --listen-on for more 964 + #: details. Changing this option by reloading the config is not 965 + #: supported. 966 + 967 + # env 968 + 969 + #: Specify environment variables to set in all child processes. Note 970 + #: that environment variables are expanded recursively, so if you 971 + #: use:: 972 + 973 + #: env MYVAR1=a 974 + #: env MYVAR2=${MYVAR1}/${HOME}/b 975 + 976 + #: The value of MYVAR2 will be a/<path to home directory>/b. 977 + 978 + # update_check_interval 24 979 + 980 + #: Periodically check if an update to kitty is available. If an update 981 + #: is found a system notification is displayed informing you of the 982 + #: available update. The default is to check every 24 hrs, set to zero 983 + #: to disable. Changing this option by reloading the config is not 984 + #: supported. 985 + 986 + # startup_session none 987 + 988 + #: Path to a session file to use for all kitty instances. Can be 989 + #: overridden by using the kitty --session command line option for 990 + #: individual instances. See 991 + #: https://sw.kovidgoyal.net/kitty/overview/#startup-sessions in the 992 + #: kitty documentation for details. Note that relative paths are 993 + #: interpreted with respect to the kitty config directory. Environment 994 + #: variables in the path are expanded. Changing this option by 995 + #: reloading the config is not supported. 996 + 997 + # clipboard_control write-clipboard write-primary 998 + 999 + #: Allow programs running in kitty to read and write from the 1000 + #: clipboard. You can control exactly which actions are allowed. The 1001 + #: set of possible actions is: write-clipboard read-clipboard write- 1002 + #: primary read-primary. The default is to allow writing to the 1003 + #: clipboard and primary selection. Note that enabling the read 1004 + #: functionality is a security risk as it means that any program, even 1005 + #: one running on a remote server via SSH can read your clipboard. 1006 + 1007 + # allow_hyperlinks yes 1008 + 1009 + #: Process hyperlink (OSC 8) escape sequences. If disabled OSC 8 1010 + #: escape sequences are ignored. Otherwise they become clickable 1011 + #: links, that you can click by holding down ctrl+shift and clicking 1012 + #: with the mouse. The special value of ``ask`` means that kitty will 1013 + #: ask before opening the link. 1014 + 1015 + # term xterm-kitty 1016 + 1017 + #: The value of the TERM environment variable to set. Changing this 1018 + #: can break many terminal programs, only change it if you know what 1019 + #: you are doing, not because you read some advice on Stack Overflow 1020 + #: to change it. The TERM variable is used by various programs to get 1021 + #: information about the capabilities and behavior of the terminal. If 1022 + #: you change it, depending on what programs you run, and how 1023 + #: different the terminal you are changing it to is, various things 1024 + #: from key-presses, to colors, to various advanced features may not 1025 + #: work. Changing this option by reloading the config will only affect 1026 + #: newly created windows. 1027 + 1028 + #: }}} 1029 + 1030 + #: OS specific tweaks {{{ 1031 + 1032 + # wayland_titlebar_color system 1033 + 1034 + #: Change the color of the kitty window's titlebar on Wayland systems 1035 + #: with client side window decorations such as GNOME. A value of 1036 + #: system means to use the default system color, a value of background 1037 + #: means to use the background color of the currently active window 1038 + #: and finally you can use an arbitrary color, such as #12af59 or red. 1039 + 1040 + # macos_titlebar_color system 1041 + 1042 + #: Change the color of the kitty window's titlebar on macOS. A value 1043 + #: of system means to use the default system color, a value of 1044 + #: background means to use the background color of the currently 1045 + #: active window and finally you can use an arbitrary color, such as 1046 + #: #12af59 or red. WARNING: This option works by using a hack, as 1047 + #: there is no proper Cocoa API for it. It sets the background color 1048 + #: of the entire window and makes the titlebar transparent. As such it 1049 + #: is incompatible with background_opacity. If you want to use both, 1050 + #: you are probably better off just hiding the titlebar with 1051 + #: hide_window_decorations. 1052 + 1053 + # macos_option_as_alt no 1054 + 1055 + #: Use the option key as an alt key. With this set to no, kitty will 1056 + #: use the macOS native Option+Key = unicode character behavior. This 1057 + #: will break any Alt+key keyboard shortcuts in your terminal 1058 + #: programs, but you can use the macOS unicode input technique. You 1059 + #: can use the values: left, right, or both to use only the left, 1060 + #: right or both Option keys as Alt, instead. Changing this setting by 1061 + #: reloading the config is not supported. 1062 + 1063 + # macos_hide_from_tasks no 1064 + 1065 + #: Hide the kitty window from running tasks (⌘+Tab) on macOS. Changing 1066 + #: this setting by reloading the config is not supported. 1067 + 1068 + # macos_quit_when_last_window_closed no 1069 + 1070 + #: Have kitty quit when all the top-level windows are closed. By 1071 + #: default, kitty will stay running, even with no open windows, as is 1072 + #: the expected behavior on macOS. 1073 + 1074 + # macos_window_resizable yes 1075 + 1076 + #: Disable this if you want kitty top-level (OS) windows to not be 1077 + #: resizable on macOS. Changing this setting by reloading the config 1078 + #: will only affect newly created windows. 1079 + 1080 + # macos_thicken_font 0 1081 + 1082 + #: Draw an extra border around the font with the given width, to 1083 + #: increase legibility at small font sizes. For example, a value of 1084 + #: 0.75 will result in rendering that looks similar to sub-pixel 1085 + #: antialiasing at common font sizes. 1086 + 1087 + # macos_traditional_fullscreen no 1088 + 1089 + #: Use the traditional full-screen transition, that is faster, but 1090 + #: less pretty. 1091 + 1092 + # macos_show_window_title_in all 1093 + 1094 + #: Show or hide the window title in the macOS window or menu-bar. A 1095 + #: value of window will show the title of the currently active window 1096 + #: at the top of the macOS window. A value of menubar will show the 1097 + #: title of the currently active window in the macOS menu-bar, making 1098 + #: use of otherwise wasted space. all will show the title everywhere 1099 + #: and none hides the title in the window and the menu-bar. 1100 + 1101 + # macos_custom_beam_cursor no 1102 + 1103 + #: Enable/disable custom mouse cursor for macOS that is easier to see 1104 + #: on both light and dark backgrounds. WARNING: this might make your 1105 + #: mouse cursor invisible on dual GPU machines. Changing this setting 1106 + #: by reloading the config is not supported. 1107 + 1108 + # linux_display_server auto 1109 + 1110 + #: Choose between Wayland and X11 backends. By default, an appropriate 1111 + #: backend based on the system state is chosen automatically. Set it 1112 + #: to x11 or wayland to force the choice. Changing this setting by 1113 + #: reloading the config is not supported. 1114 + 1115 + #: }}} 1116 + 1117 + #: Keyboard shortcuts {{{ 1118 + 1119 + #: Keys are identified simply by their lowercase unicode characters. 1120 + #: For example: ``a`` for the A key, ``[`` for the left square bracket 1121 + #: key, etc. For functional keys, such as ``Enter or Escape`` the 1122 + #: names are present at https://sw.kovidgoyal.net/kitty/keyboard- 1123 + #: protocol/#functional-key-definitions. For a list of modifier names, 1124 + #: see: GLFW mods <https://www.glfw.org/docs/latest/group__mods.html> 1125 + 1126 + #: On Linux you can also use XKB key names to bind keys that are not 1127 + #: supported by GLFW. See XKB keys 1128 + #: <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon- 1129 + #: keysyms.h> for a list of key names. The name to use is the part 1130 + #: after the XKB_KEY_ prefix. Note that you can only use an XKB key 1131 + #: name for keys that are not known as GLFW keys. 1132 + 1133 + #: Finally, you can use raw system key codes to map keys, again only 1134 + #: for keys that are not known as GLFW keys. To see the system key 1135 + #: code for a key, start kitty with the kitty --debug-input option. 1136 + #: Then kitty will output some debug text for every key event. In that 1137 + #: text look for ``native_code`` the value of that becomes the key 1138 + #: name in the shortcut. For example: 1139 + 1140 + #: .. code-block:: none 1141 + 1142 + #: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a' 1143 + 1144 + #: Here, the key name for the A key is 0x61 and you can use it with:: 1145 + 1146 + #: map ctrl+0x61 something 1147 + 1148 + #: to map ctrl+a to something. 1149 + 1150 + #: You can use the special action no_op to unmap a keyboard shortcut 1151 + #: that is assigned in the default configuration:: 1152 + 1153 + #: map kitty_mod+space no_op 1154 + 1155 + #: You can combine multiple actions to be triggered by a single 1156 + #: shortcut, using the syntax below:: 1157 + 1158 + #: map key combine <separator> action1 <separator> action2 <separator> action3 ... 1159 + 1160 + #: For example:: 1161 + 1162 + #: map kitty_mod+e combine : new_window : next_layout 1163 + 1164 + #: this will create a new window and switch to the next available 1165 + #: layout 1166 + 1167 + #: You can use multi-key shortcuts using the syntax shown below:: 1168 + 1169 + #: map key1>key2>key3 action 1170 + 1171 + #: For example:: 1172 + 1173 + #: map ctrl+f>2 set_font_size 20 1174 + 1175 + #: The full list of actions that can be mapped to key presses is 1176 + #: available here </actions>. 1177 + 1178 + # kitty_mod ctrl+shift 1179 + 1180 + #: The value of kitty_mod is used as the modifier for all default 1181 + #: shortcuts, you can change it in your kitty.conf to change the 1182 + #: modifiers for all the default shortcuts. 1183 + 1184 + # clear_all_shortcuts no 1185 + 1186 + #: You can have kitty remove all shortcut definition seen up to this 1187 + #: point. Useful, for instance, to remove the default shortcuts. 1188 + 1189 + # kitten_alias hints hints --hints-offset=0 1190 + 1191 + #: You can create aliases for kitten names, this allows overriding the 1192 + #: defaults for kitten options and can also be used to shorten 1193 + #: repeated mappings of the same kitten with a specific group of 1194 + #: options. For example, the above alias changes the default value of 1195 + #: kitty +kitten hints --hints-offset to zero for all mappings, 1196 + #: including the builtin ones. 1197 + 1198 + #: Clipboard {{{ 1199 + 1200 + # map kitty_mod+c copy_to_clipboard 1201 + 1202 + #: There is also a copy_or_interrupt action that can be optionally 1203 + #: mapped to Ctrl+c. It will copy only if there is a selection and 1204 + #: send an interrupt otherwise. Similarly, copy_and_clear_or_interrupt 1205 + #: will copy and clear the selection or send an interrupt if there is 1206 + #: no selection. 1207 + 1208 + # map kitty_mod+v paste_from_clipboard 1209 + # map kitty_mod+s paste_from_selection 1210 + # map kitty_mod+o pass_selection_to_program 1211 + 1212 + #: You can also pass the contents of the current selection to any 1213 + #: program using pass_selection_to_program. By default, the system's 1214 + #: open program is used, but you can specify your own, the selection 1215 + #: will be passed as a command line argument to the program, for 1216 + #: example:: 1217 + 1218 + #: map kitty_mod+o pass_selection_to_program firefox 1219 + 1220 + #: You can pass the current selection to a terminal program running in 1221 + #: a new kitty window, by using the @selection placeholder:: 1222 + 1223 + #: map kitty_mod+y new_window less @selection 1224 + 1225 + #: }}} 1226 + 1227 + #: Scrolling {{{ 1228 + 1229 + # map kitty_mod+up scroll_line_up 1230 + # map kitty_mod+down scroll_line_down 1231 + # map kitty_mod+page_up scroll_page_up 1232 + # map kitty_mod+page_down scroll_page_down 1233 + # map kitty_mod+home scroll_home 1234 + # map kitty_mod+end scroll_end 1235 + # map kitty_mod+h show_scrollback 1236 + 1237 + #: You can pipe the contents of the current screen + history buffer as 1238 + #: STDIN to an arbitrary program using the ``launch`` function. For 1239 + #: example, the following opens the scrollback buffer in less in an 1240 + #: overlay window:: 1241 + 1242 + #: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R 1243 + 1244 + #: For more details on piping screen and buffer contents to external 1245 + #: programs, see launch. 1246 + 1247 + #: }}} 1248 + 1249 + #: Window management {{{ 1250 + 1251 + # map kitty_mod+enter new_window 1252 + 1253 + #: You can open a new window running an arbitrary program, for 1254 + #: example:: 1255 + 1256 + #: map kitty_mod+y launch mutt 1257 + 1258 + #: You can open a new window with the current working directory set to 1259 + #: the working directory of the current window using:: 1260 + 1261 + #: map ctrl+alt+enter launch --cwd=current 1262 + 1263 + #: You can open a new window that is allowed to control kitty via the 1264 + #: kitty remote control facility by prefixing the command line with @. 1265 + #: Any programs running in that window will be allowed to control 1266 + #: kitty. For example:: 1267 + 1268 + #: map ctrl+enter launch --allow-remote-control some_program 1269 + 1270 + #: You can open a new window next to the currently active window or as 1271 + #: the first window, with:: 1272 + 1273 + #: map ctrl+n launch --location=neighbor some_program 1274 + #: map ctrl+f launch --location=first some_program 1275 + 1276 + #: For more details, see launch. 1277 + 1278 + # map kitty_mod+n new_os_window 1279 + 1280 + #: Works like new_window above, except that it opens a top level OS 1281 + #: kitty window. In particular you can use new_os_window_with_cwd to 1282 + #: open a window with the current working directory. 1283 + 1284 + # map kitty_mod+w close_window 1285 + # map kitty_mod+] next_window 1286 + # map kitty_mod+[ previous_window 1287 + # map kitty_mod+f move_window_forward 1288 + # map kitty_mod+b move_window_backward 1289 + # map kitty_mod+` move_window_to_top 1290 + # map kitty_mod+r start_resizing_window 1291 + # map kitty_mod+1 first_window 1292 + # map kitty_mod+2 second_window 1293 + # map kitty_mod+3 third_window 1294 + # map kitty_mod+4 fourth_window 1295 + # map kitty_mod+5 fifth_window 1296 + # map kitty_mod+6 sixth_window 1297 + # map kitty_mod+7 seventh_window 1298 + # map kitty_mod+8 eighth_window 1299 + # map kitty_mod+9 ninth_window 1300 + # map kitty_mod+0 tenth_window 1301 + #: }}} 1302 + 1303 + #: Tab management {{{ 1304 + 1305 + # map kitty_mod+right next_tab 1306 + # map kitty_mod+left previous_tab 1307 + # map kitty_mod+t new_tab 1308 + # map kitty_mod+q close_tab 1309 + # map shift+cmd+w close_os_window 1310 + # map kitty_mod+. move_tab_forward 1311 + # map kitty_mod+, move_tab_backward 1312 + # map kitty_mod+alt+t set_tab_title 1313 + 1314 + #: You can also create shortcuts to go to specific tabs, with 1 being 1315 + #: the first tab, 2 the second tab and -1 being the previously active 1316 + #: tab, and any number larger than the last tab being the last tab:: 1317 + 1318 + #: map ctrl+alt+1 goto_tab 1 1319 + #: map ctrl+alt+2 goto_tab 2 1320 + 1321 + #: Just as with new_window above, you can also pass the name of 1322 + #: arbitrary commands to run when using new_tab and use 1323 + #: new_tab_with_cwd. Finally, if you want the new tab to open next to 1324 + #: the current tab rather than at the end of the tabs list, use:: 1325 + 1326 + #: map ctrl+t new_tab !neighbor [optional cmd to run] 1327 + #: }}} 1328 + 1329 + #: Layout management {{{ 1330 + 1331 + # map kitty_mod+l next_layout 1332 + 1333 + #: You can also create shortcuts to switch to specific layouts:: 1334 + 1335 + #: map ctrl+alt+t goto_layout tall 1336 + #: map ctrl+alt+s goto_layout stack 1337 + 1338 + #: Similarly, to switch back to the previous layout:: 1339 + 1340 + #: map ctrl+alt+p last_used_layout 1341 + 1342 + #: There is also a toggle layout function that switches to the named 1343 + #: layout or back to the previous layout if in the named layout. 1344 + #: Useful to temporarily "zoom" the active window by switching to the 1345 + #: stack layout:: 1346 + 1347 + #: map ctrl+alt+z toggle_layout stack 1348 + #: }}} 1349 + 1350 + #: Font sizes {{{ 1351 + 1352 + #: You can change the font size for all top-level kitty OS windows at 1353 + #: a time or only the current one. 1354 + 1355 + # map kitty_mod+equal change_font_size all +2.0 1356 + # map kitty_mod+minus change_font_size all -2.0 1357 + # map kitty_mod+backspace change_font_size all 0 1358 + 1359 + #: To setup shortcuts for specific font sizes:: 1360 + 1361 + #: map kitty_mod+f6 change_font_size all 10.0 1362 + 1363 + #: To setup shortcuts to change only the current OS window's font 1364 + #: size:: 1365 + 1366 + #: map kitty_mod+f6 change_font_size current 10.0 1367 + #: }}} 1368 + 1369 + #: Select and act on visible text {{{ 1370 + 1371 + #: Use the hints kitten to select text and either pass it to an 1372 + #: external program or insert it into the terminal or copy it to the 1373 + #: clipboard. 1374 + 1375 + # map kitty_mod+e open_url_with_hints 1376 + 1377 + #: Open a currently visible URL using the keyboard. The program used 1378 + #: to open the URL is specified in open_url_with. 1379 + 1380 + # map kitty_mod+p>f kitten hints --type path --program - 1381 + 1382 + #: Select a path/filename and insert it into the terminal. Useful, for 1383 + #: instance to run git commands on a filename output from a previous 1384 + #: git command. 1385 + 1386 + # map kitty_mod+p>shift+f kitten hints --type path 1387 + 1388 + #: Select a path/filename and open it with the default open program. 1389 + 1390 + # map kitty_mod+p>l kitten hints --type line --program - 1391 + 1392 + #: Select a line of text and insert it into the terminal. Use for the 1393 + #: output of things like: ls -1 1394 + 1395 + # map kitty_mod+p>w kitten hints --type word --program - 1396 + 1397 + #: Select words and insert into terminal. 1398 + 1399 + # map kitty_mod+p>h kitten hints --type hash --program - 1400 + 1401 + #: Select something that looks like a hash and insert it into the 1402 + #: terminal. Useful with git, which uses sha1 hashes to identify 1403 + #: commits 1404 + 1405 + # map kitty_mod+p>n kitten hints --type linenum 1406 + 1407 + #: Select something that looks like filename:linenum and open it in 1408 + #: vim at the specified line number. 1409 + 1410 + # map kitty_mod+p>y kitten hints --type hyperlink 1411 + 1412 + #: Select a hyperlink (i.e. a URL that has been marked as such by the 1413 + #: terminal program, for example, by ls --hyperlink=auto). 1414 + 1415 + 1416 + #: The hints kitten has many more modes of operation that you can map 1417 + #: to different shortcuts. For a full description see kittens/hints. 1418 + #: }}} 1419 + 1420 + #: Miscellaneous {{{ 1421 + 1422 + # map kitty_mod+f11 toggle_fullscreen 1423 + # map kitty_mod+f10 toggle_maximized 1424 + # map kitty_mod+u kitten unicode_input 1425 + # map kitty_mod+f2 edit_config_file 1426 + # map kitty_mod+escape kitty_shell window 1427 + 1428 + #: Open the kitty shell in a new window/tab/overlay/os_window to 1429 + #: control kitty using commands. 1430 + 1431 + # map kitty_mod+a>m set_background_opacity +0.1 1432 + # map kitty_mod+a>l set_background_opacity -0.1 1433 + # map kitty_mod+a>1 set_background_opacity 1 1434 + # map kitty_mod+a>d set_background_opacity default 1435 + # map kitty_mod+delete clear_terminal reset active 1436 + 1437 + #: You can create shortcuts to clear/reset the terminal. For example:: 1438 + 1439 + #: # Reset the terminal 1440 + #: map kitty_mod+f9 clear_terminal reset active 1441 + #: # Clear the terminal screen by erasing all contents 1442 + #: map kitty_mod+f10 clear_terminal clear active 1443 + #: # Clear the terminal scrollback by erasing it 1444 + #: map kitty_mod+f11 clear_terminal scrollback active 1445 + #: # Scroll the contents of the screen into the scrollback 1446 + #: map kitty_mod+f12 clear_terminal scroll active 1447 + 1448 + #: If you want to operate on all windows instead of just the current 1449 + #: one, use all instead of active. 1450 + 1451 + #: It is also possible to remap Ctrl+L to both scroll the current 1452 + #: screen contents into the scrollback buffer and clear the screen, 1453 + #: instead of just clearing the screen, for example, for ZSH add the 1454 + #: following to ~/.zshrc: 1455 + 1456 + #: .. code-block:: sh 1457 + 1458 + #: scroll-and-clear-screen() { 1459 + #: printf '\n%.0s' {1..$LINES} 1460 + #: zle clear-screen 1461 + #: } 1462 + #: zle -N scroll-and-clear-screen 1463 + #: bindkey '^l' scroll-and-clear-screen 1464 + 1465 + # map kitty_mod+f5 load_config_file 1466 + 1467 + #: Reload kitty.conf, applying any changes since the last time it was 1468 + #: loaded. Note that a handful of settings cannot be dynamically 1469 + #: changed and require a full restart of kitty. You can also map a 1470 + #: keybinding to load a different config file, for example:: 1471 + 1472 + #: map f5 load_config /path/to/alternative/kitty.conf 1473 + 1474 + #: Note that all setting from the original kitty.conf are discarded, 1475 + #: in other words the new conf settings *replace* the old ones. 1476 + 1477 + # map kitty_mod+f6 debug_config 1478 + 1479 + #: Show details about exactly what configuration kitty is running with 1480 + #: and its host environment. Useful for debugging issues. 1481 + 1482 + 1483 + #: You can tell kitty to send arbitrary (UTF-8) encoded text to the 1484 + #: client program when pressing specified shortcut keys. For example:: 1485 + 1486 + #: map ctrl+alt+a send_text all Special text 1487 + 1488 + #: This will send "Special text" when you press the ctrl+alt+a key 1489 + #: combination. The text to be sent is a python string literal so you 1490 + #: can use escapes like \x1b to send control codes or \u21fb to send 1491 + #: unicode characters (or you can just input the unicode characters 1492 + #: directly as UTF-8 text). The first argument to send_text is the 1493 + #: keyboard modes in which to activate the shortcut. The possible 1494 + #: values are normal or application or kitty or a comma separated 1495 + #: combination of them. The special keyword all means all modes. The 1496 + #: modes normal and application refer to the DECCKM cursor key mode 1497 + #: for terminals, and kitty refers to the special kitty extended 1498 + #: keyboard protocol. 1499 + 1500 + #: Another example, that outputs a word and then moves the cursor to 1501 + #: the start of the line (same as pressing the Home key):: 1502 + 1503 + #: map ctrl+alt+a send_text normal Word\x1b[H 1504 + #: map ctrl+alt+a send_text application Word\x1bOH 1505 + 1506 + #: }}} 1507 + 1508 + #: }}}
+2 -1
nvim/init.vim
··· 291 291 ""Gruvbox: 292 292 colorscheme gruvbox 293 293 let g:airline_theme = 'gruvbox' "'one' 294 - 294 + set encoding=utf8 295 + let g:airline_powerline_fonts = 1 295 296 296 297 "set bg=dark 297 298 "let g:gruvbox_contrast_dark = 'hard'