]> git.cameronkatri.com Git - dotfiles.git/blob - .config/kitty/kitty.conf
Initial dotfiles
[dotfiles.git] / .config / kitty / kitty.conf
1 # vim:fileencoding=utf-8:ft=conf:foldmethod=marker
2
3 font_family JetBrains Mono
4 bold_font JetBrains Mono Bold
5 italic_font JetBrains Mono Italic
6 bold_italic_font JetBrains Mono Bold Italic
7 symbol_map U+2800-U+28FF Braille
8
9 font_size 10
10
11 #: Font size (in pts)
12
13 force_ltr no
14
15 adjust_line_height 0
16 adjust_column_width 0
17
18 disable_ligatures never
19
20 font_features none
21
22 box_drawing_scale 0.001, 1, 1.5, 2
23
24 cursor_text_color #111111
25
26 cursor_shape beam
27
28 cursor_blink_interval 0.5
29
30 #cursor_stop_blinking_after 15.0
31
32 scrollback_lines 2000
33
34 scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
35
36 scrollback_pager_history_size 0
37
38 wheel_scroll_multiplier 5.0
39
40 touch_scroll_multiplier 1.0
41
42 mouse_hide_wait 3.0
43
44 #: Hide mouse cursor after the specified number of seconds of the
45 #: mouse not being used. Set to zero to disable mouse cursor hiding.
46 #: Set to a negative value to hide the mouse cursor immediately when
47 #: typing text. Disabled by default on macOS as getting it to work
48 #: robustly with the ever-changing sea of bugs that is Cocoa is too
49 #: much effort.
50
51 url_color #0087bd
52 url_style curly
53
54 #: The color and style for highlighting URLs on mouse-over. url_style
55 #: can be one of: none, single, double, curly
56
57 open_url_modifiers kitty_mod
58
59 #: The modifier keys to press when clicking with the mouse on URLs to
60 #: open the URL
61
62 open_url_with default
63
64 #: The program with which to open URLs that are clicked on. The
65 #: special value default means to use the operating system's default
66 #: URL handler.
67
68 copy_on_select no
69
70 #: Copy to clipboard or a private buffer on select. With this set to
71 #: clipboard, simply selecting text with the mouse will cause the text
72 #: to be copied to clipboard. Useful on platforms such as macOS that
73 #: do not have the concept of primary selections. You can instead
74 #: specify a name such as a1 to copy to a private kitty buffer
75 #: instead. Map a shortcut with the paste_from_buffer action to paste
76 #: from this private buffer. For example::
77
78 #: map cmd+shift+v paste_from_buffer a1
79
80 #: Note that copying to the clipboard is a security risk, as all
81 #: programs, including websites open in your browser can read the
82 #: contents of the system clipboard.
83
84 strip_trailing_spaces never
85
86 #: Remove spaces at the end of lines when copying to clipboard. A
87 #: value of smart will do it when using normal selections, but not
88 #: rectangle selections. always will always do it.
89
90 rectangle_select_modifiers ctrl+alt
91
92 #: The modifiers to use rectangular selection (i.e. to select text in
93 #: a rectangular block with the mouse)
94
95 terminal_select_modifiers shift
96
97 #: The modifiers to override mouse selection even when a terminal
98 #: application has grabbed the mouse
99
100 select_by_word_characters :@-./_~?&=%+#
101
102 #: Characters considered part of a word when double clicking. In
103 #: addition to these characters any character that is marked as an
104 #: alphanumeric character in the unicode database will be matched.
105
106 click_interval -1.0
107
108 #: The interval between successive clicks to detect double/triple
109 #: clicks (in seconds). Negative numbers will use the system default
110 #: instead, if available, or fallback to 0.5.
111
112 focus_follows_mouse no
113
114 #: Set the active window to the window under the mouse when moving the
115 #: mouse around
116
117 pointer_shape_when_grabbed arrow
118
119 #: The shape of the mouse pointer when the program running in the
120 #: terminal grabs the mouse. Valid values are: arrow, beam and hand
121
122
123 #: Performance tuning {{{
124
125 repaint_delay 10
126
127 #: Delay (in milliseconds) between screen updates. Decreasing it,
128 #: increases frames-per-second (FPS) at the cost of more CPU usage.
129 #: The default value yields ~100 FPS which is more than sufficient for
130 #: most uses. Note that to actually achieve 100 FPS you have to either
131 #: set sync_to_monitor to no or use a monitor with a high refresh
132 #: rate. Also, to minimize latency when there is pending input to be
133 #: processed, repaint_delay is ignored.
134
135 input_delay 3
136
137 #: Delay (in milliseconds) before input from the program running in
138 #: the terminal is processed. Note that decreasing it will increase
139 #: responsiveness, but also increase CPU usage and might cause flicker
140 #: in full screen programs that redraw the entire screen on each loop,
141 #: because kitty is so fast that partial screen updates will be drawn.
142
143 sync_to_monitor yes
144
145 #: Sync screen updates to the refresh rate of the monitor. This
146 #: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing)
147 #: when scrolling. However, it limits the rendering speed to the
148 #: refresh rate of your monitor. With a very high speed mouse/high
149 #: keyboard repeat rate, you may notice some slight input latency. If
150 #: so, set this to no.
151
152 #: }}}
153
154 #: Terminal bell {{{
155
156 enable_audio_bell no
157
158 #: Enable/disable the audio bell. Useful in environments that require
159 #: silence.
160
161 visual_bell_duration 0.0
162
163 #: Visual bell duration. Flash the screen when a bell occurs for the
164 #: specified number of seconds. Set to zero to disable.
165
166 window_alert_on_bell no
167
168 #: Request window attention on bell. Makes the dock icon bounce on
169 #: macOS or the taskbar flash on linux.
170
171 bell_on_tab no
172
173 #: Show a bell symbol on the tab if a bell occurs in one of the
174 #: windows in the tab and the window is not the currently focused
175 #: window
176
177 command_on_bell none
178
179 #: Program to run when a bell occurs.
180
181 #: }}}
182
183 #: Window layout {{{
184
185 remember_window_size yes
186 initial_window_width 640
187 initial_window_height 400
188
189 #: If enabled, the window size will be remembered so that new
190 #: instances of kitty will have the same size as the previous
191 #: instance. If disabled, the window will initially have size
192 #: configured by initial_window_width/height, in pixels. You can use a
193 #: suffix of "c" on the width/height values to have them interpreted
194 #: as number of cells instead of pixels.
195
196 enabled_layouts *
197
198 #: The enabled window layouts. A comma separated list of layout names.
199 #: The special value all means all layouts. The first listed layout
200 #: will be used as the startup layout. Default configuration is all
201 #: layouts in alphabetical order. For a list of available layouts, see
202 #: the https://sw.kovidgoyal.net/kitty/index.html#layouts.
203
204 window_resize_step_cells 2
205 window_resize_step_lines 2
206
207 #: The step size (in units of cell width/cell height) to use when
208 #: resizing windows. The cells value is used for horizontal resizing
209 #: and the lines value for vertical resizing.
210
211 window_border_width 1.0
212
213 #: The width (in pts) of window borders. Will be rounded to the
214 #: nearest number of pixels based on screen resolution. Note that
215 #: borders are displayed only when more than one window is visible.
216 #: They are meant to separate multiple windows.
217
218 draw_minimal_borders yes
219
220 #: Draw only the minimum borders needed. This means that only the
221 #: minimum needed borders for inactive windows are drawn. That is only
222 #: the borders that separate the inactive window from a neighbor. Note
223 #: that setting a non-zero window margin overrides this and causes all
224 #: borders to be drawn.
225
226 window_margin_width 0.0
227
228 #: The window margin (in pts) (blank area outside the border)
229
230 single_window_margin_width -1000.0
231
232 #: The window margin (in pts) to use when only a single window is
233 #: visible. Negative values will cause the value of
234 #: window_margin_width to be used instead.
235
236 window_padding_width 15.0
237
238 #: The window padding (in pts) (blank area between the text and the
239 #: window border)
240
241 placement_strategy center
242
243 #: When the window size is not an exact multiple of the cell size, the
244 #: cell area of the terminal window will have some extra padding on
245 #: the sides. You can control how that padding is distributed with
246 #: this option. Using a value of center means the cell area will be
247 #: placed centrally. A value of top-left means the padding will be on
248 #: only the bottom and right edges.
249
250 active_border_color #00ff00
251
252 #: The color for the border of the active window. Set this to none to
253 #: not draw borders around the active window.
254
255 inactive_border_color #cccccc
256
257 #: The color for the border of inactive windows
258
259 bell_border_color #ff5a00
260
261 #: The color for the border of inactive windows in which a bell has
262 #: occurred
263
264 inactive_text_alpha 1.0
265
266 #: Fade the text in inactive windows by the specified amount (a number
267 #: between zero and one, with zero being fully faded).
268
269 hide_window_decorations no
270
271 #: Hide the window decorations (title-bar and window borders) with
272 #: yes. On macOS, titlebar-only can be used to only hide the titlebar.
273 #: Whether this works and exactly what effect it has depends on the
274 #: window manager/operating system.
275
276 resize_debounce_time 0.1
277
278 #: The time (in seconds) to wait before redrawing the screen when a
279 #: resize event is received. On platforms such as macOS, where the
280 #: operating system sends events corresponding to the start and end of
281 #: a resize, this number is ignored.
282
283 resize_draw_strategy static
284
285 #: Choose how kitty draws a window while a resize is in progress. A
286 #: value of static means draw the current window contents, mostly
287 #: unchanged. A value of scale means draw the current window contents
288 #: scaled. A value of blank means draw a blank window. A value of size
289 #: means show the window size in cells.
290
291 resize_in_steps no
292
293 #: Resize the OS window in steps as large as the cells, instead of
294 #: with the usual pixel accuracy. Combined with an
295 #: initial_window_width and initial_window_height in number of cells,
296 #: this option can be used to keep the margins as small as possible
297 #: when resizing the OS window. Note that this does not currently work
298 #: on Wayland.
299
300 #: }}}
301
302 #: Tab bar {{{
303
304 tab_bar_edge bottom
305
306 #: Which edge to show the tab bar on, top or bottom
307
308 tab_bar_margin_width 0.0
309
310 #: The margin to the left and right of the tab bar (in pts)
311
312 tab_bar_style fade
313
314 #: The tab bar style, can be one of: fade, separator, powerline, or
315 #: hidden. In the fade style, each tab's edges fade into the
316 #: background color, in the separator style, tabs are separated by a
317 #: configurable separator, and the powerline shows the tabs as a
318 #: continuous line.
319
320 tab_bar_min_tabs 2
321
322 #: The minimum number of tabs that must exist before the tab bar is
323 #: shown
324
325 tab_switch_strategy previous
326
327 #: The algorithm to use when switching to a tab when the current tab
328 #: is closed. The default of previous will switch to the last used
329 #: tab. A value of left will switch to the tab to the left of the
330 #: closed tab. A value of last will switch to the right-most tab.
331
332 tab_fade 0.25 0.5 0.75 1
333
334 #: Control how each tab fades into the background when using fade for
335 #: the tab_bar_style. Each number is an alpha (between zero and one)
336 #: that controls how much the corresponding cell fades into the
337 #: background, with zero being no fade and one being full fade. You
338 #: can change the number of cells used by adding/removing entries to
339 #: this list.
340
341 tab_separator " ┇"
342
343 #: The separator between tabs in the tab bar when using separator as
344 #: the tab_bar_style.
345
346 tab_title_template {title}
347
348 #: A template to render the tab title. The default just renders the
349 #: title. If you wish to include the tab-index as well, use something
350 #: like: {index}: {title}. Useful if you have shortcuts mapped for
351 #: goto_tab N.
352
353 active_tab_title_template none
354
355 #: Template to use for active tabs, if not specified falls back to
356 #: tab_title_template.
357
358 active_tab_foreground #000
359 active_tab_background #eee
360 active_tab_font_style bold-italic
361 inactive_tab_foreground #444
362 inactive_tab_background #999
363 inactive_tab_font_style normal
364
365 #: Tab bar colors and styles
366
367 tab_bar_background none
368
369 #: Background color for the tab bar. Defaults to using the terminal
370 #: background color.
371
372 #: }}}
373
374 shell .
375
376 #: The shell program to execute. The default value of . means to use
377 #: whatever shell is set as the default shell for the current user.
378 #: Note that on macOS if you change this, you might need to add
379 #: --login to ensure that the shell starts in interactive mode and
380 #: reads its startup rc files.
381
382 editor .
383
384 #: The console editor to use when editing the kitty config file or
385 #: similar tasks. A value of . means to use the environment variables
386 #: VISUAL and EDITOR in that order. Note that this environment
387 #: variable has to be set not just in your shell startup scripts but
388 #: system-wide, otherwise kitty will not see it.
389
390 close_on_child_death no
391
392 #: Close the window when the child process (shell) exits. If no (the
393 #: default), the terminal will remain open when the child exits as
394 #: long as there are still processes outputting to the terminal (for
395 #: example disowned or backgrounded processes). If yes, the window
396 #: will close as soon as the child process exits. Note that setting it
397 #: to yes means that any background processes still using the terminal
398 #: can fail silently because their stdout/stderr/stdin no longer work.
399
400 allow_remote_control no
401
402 #: Allow other programs to control kitty. If you turn this on other
403 #: programs can control all aspects of kitty, including sending text
404 #: to kitty windows, opening new windows, closing windows, reading the
405 #: content of windows, etc. Note that this even works over ssh
406 #: connections. You can chose to either allow any program running
407 #: within kitty to control it, with yes or only programs that connect
408 #: to the socket specified with the kitty --listen-on command line
409 #: option, if you use the value socket-only. The latter is useful if
410 #: you want to prevent programs running on a remote computer over ssh
411 #: from controlling kitty.
412
413 # env
414
415 #: Specify environment variables to set in all child processes. Note
416 #: that environment variables are expanded recursively, so if you
417 #: use::
418
419 #: env MYVAR1=a
420 #: env MYVAR2=${MYVAR1}/${HOME}/b
421
422 #: The value of MYVAR2 will be a/<path to home directory>/b.
423
424 update_check_interval 24
425
426 #: Periodically check if an update to kitty is available. If an update
427 #: is found a system notification is displayed informing you of the
428 #: available update. The default is to check every 24 hrs, set to zero
429 #: to disable.
430
431 startup_session none
432
433 #: Path to a session file to use for all kitty instances. Can be
434 #: overridden by using the kitty --session command line option for
435 #: individual instances. See
436 #: https://sw.kovidgoyal.net/kitty/index.html#sessions in the kitty
437 #: documentation for details. Note that relative paths are interpreted
438 #: with respect to the kitty config directory. Environment variables
439 #: in the path are expanded.
440
441 clipboard_control write-clipboard write-primary
442
443 #: Allow programs running in kitty to read and write from the
444 #: clipboard. You can control exactly which actions are allowed. The
445 #: set of possible actions is: write-clipboard read-clipboard write-
446 #: primary read-primary. You can additionally specify no-append to
447 #: disable kitty's protocol extension for clipboard concatenation. The
448 #: default is to allow writing to the clipboard and primary selection
449 #: with concatenation enabled. Note that enabling the read
450 #: functionality is a security risk as it means that any program, even
451 #: one running on a remote server via SSH can read your clipboard.
452
453 term xterm-kitty
454
455 #: The value of the TERM environment variable to set. Changing this
456 #: can break many terminal programs, only change it if you know what
457 #: you are doing, not because you read some advice on Stack Overflow
458 #: to change it. The TERM variable is used by various programs to get
459 #: information about the capabilities and behavior of the terminal. If
460 #: you change it, depending on what programs you run, and how
461 #: different the terminal you are changing it to is, various things
462 #: from key-presses, to colors, to various advanced features may not
463 #: work.
464
465 #:
466
467 linux_display_server auto
468
469 #: For a list of key names, see: GLFW keys
470 #: <https://www.glfw.org/docs/latest/group__keys.html>. The name to
471 #: use is the part after the GLFW_KEY_ prefix. For a list of modifier
472 #: names, see: GLFW mods
473 #: <https://www.glfw.org/docs/latest/group__mods.html>
474
475 #: On Linux you can also use XKB key names to bind keys that are not
476 #: supported by GLFW. See XKB keys
477 #: <https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-
478 #: keysyms.h> for a list of key names. The name to use is the part
479 #: after the XKB_KEY_ prefix. Note that you should only use an XKB key
480 #: name for keys that are not present in the list of GLFW keys.
481
482 #: Finally, you can use raw system key codes to map keys. To see the
483 #: system key code for a key, start kitty with the kitty --debug-
484 #: keyboard option. Then kitty will output some debug text for every
485 #: key event. In that text look for ``native_code`` the value of that
486 #: becomes the key name in the shortcut. For example:
487
488 #: .. code-block:: none
489
490 #: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a'
491
492 #: Here, the key name for the A key is 0x61 and you can use it with::
493
494 #: map ctrl+0x61 something
495
496 #: to map ctrl+a to something.
497
498 #: You can use the special action no_op to unmap a keyboard shortcut
499 #: that is assigned in the default configuration::
500
501 #: map kitty_mod+space no_op
502
503 #: You can combine multiple actions to be triggered by a single
504 #: shortcut, using the syntax below::
505
506 #: map key combine <separator> action1 <separator> action2 <separator> action3 ...
507
508 #: For example::
509
510 #: map kitty_mod+e combine : new_window : next_layout
511
512 #: this will create a new window and switch to the next available
513 #: layout
514
515 #: You can use multi-key shortcuts using the syntax shown below::
516
517 #: map key1>key2>key3 action
518
519 #: For example::
520
521 #: map ctrl+f>2 set_font_size 20
522
523 kitty_mod ctrl+shift
524
525 #: The value of kitty_mod is used as the modifier for all default
526 #: shortcuts, you can change it in your kitty.conf to change the
527 #: modifiers for all the default shortcuts.
528
529 clear_all_shortcuts no
530
531 #: You can have kitty remove all shortcut definition seen up to this
532 #: point. Useful, for instance, to remove the default shortcuts.
533
534 # kitten_alias hints hints --hints-offset=0
535
536 #: You can create aliases for kitten names, this allows overriding the
537 #: defaults for kitten options and can also be used to shorten
538 #: repeated mappings of the same kitten with a specific group of
539 #: options. For example, the above alias changes the default value of
540 #: kitty +kitten hints --hints-offset to zero for all mappings,
541 #: including the builtin ones.
542
543 #: Clipboard {{{
544
545 map kitty_mod+c copy_to_clipboard
546
547 #: There is also a copy_or_interrupt action that can be optionally
548 #: mapped to Ctrl+c. It will copy only if there is a selection and
549 #: send an interrupt otherwise.
550
551 map kitty_mod+v paste_from_clipboard
552 map kitty_mod+s paste_from_selection
553 map shift+insert paste_from_selection
554 map kitty_mod+o pass_selection_to_program
555
556 #: You can also pass the contents of the current selection to any
557 #: program using pass_selection_to_program. By default, the system's
558 #: open program is used, but you can specify your own, the selection
559 #: will be passed as a command line argument to the program, for
560 #: example::
561
562 #: map kitty_mod+o pass_selection_to_program firefox
563
564 #: You can pass the current selection to a terminal program running in
565 #: a new kitty window, by using the @selection placeholder::
566
567 #: map kitty_mod+y new_window less @selection
568
569 #: }}}
570
571 #: Scrolling {{{
572
573 map kitty_mod+up scroll_line_up
574 map kitty_mod+k scroll_line_up
575 map kitty_mod+down scroll_line_down
576 map kitty_mod+j scroll_line_down
577 map kitty_mod+page_up scroll_page_up
578 map kitty_mod+page_down scroll_page_down
579 map kitty_mod+home scroll_home
580 map kitty_mod+end scroll_end
581 map kitty_mod+h show_scrollback
582
583 #: You can pipe the contents of the current screen + history buffer as
584 #: STDIN to an arbitrary program using the ``launch`` function. For
585 #: example, the following opens the scrollback buffer in less in an
586 #: overlay window::
587
588 #: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
589
590 #: For more details on piping screen and buffer contents to external
591 #: programs, see launch.
592
593 #: }}}
594
595 #: Window management {{{
596
597 map kitty_mod+enter new_window
598
599 #: You can open a new window running an arbitrary program, for
600 #: example::
601
602 #: map kitty_mod+y launch mutt
603
604 #: You can open a new window with the current working directory set to
605 #: the working directory of the current window using::
606
607 #: map ctrl+alt+enter launch --cwd=current
608
609 #: You can open a new window that is allowed to control kitty via the
610 #: kitty remote control facility by prefixing the command line with @.
611 #: Any programs running in that window will be allowed to control
612 #: kitty. For example::
613
614 #: map ctrl+enter launch --allow-remote-control some_program
615
616 #: You can open a new window next to the currently active window or as
617 #: the first window, with::
618
619 #: map ctrl+n launch --location=neighbor some_program
620 #: map ctrl+f launch --location=first some_program
621
622 #: For more details, see launch.
623
624 map kitty_mod+n new_os_window
625
626 #: Works like new_window above, except that it opens a top level OS
627 #: kitty window. In particular you can use new_os_window_with_cwd to
628 #: open a window with the current working directory.
629
630 map kitty_mod+w close_window
631 map kitty_mod+] next_window
632 map kitty_mod+[ previous_window
633 map kitty_mod+f move_window_forward
634 map kitty_mod+b move_window_backward
635 map kitty_mod+` move_window_to_top
636 map kitty_mod+r start_resizing_window
637 map kitty_mod+1 first_window
638 map kitty_mod+2 second_window
639 map kitty_mod+3 third_window
640 map kitty_mod+4 fourth_window
641 map kitty_mod+5 fifth_window
642 map kitty_mod+6 sixth_window
643 map kitty_mod+7 seventh_window
644 map kitty_mod+8 eighth_window
645 map kitty_mod+9 ninth_window
646 map kitty_mod+0 tenth_window
647 #: }}}
648
649 #: Tab management {{{
650
651 map kitty_mod+right next_tab
652 map kitty_mod+left previous_tab
653 map kitty_mod+t new_tab
654 map kitty_mod+q close_tab
655 map kitty_mod+. move_tab_forward
656 map kitty_mod+, move_tab_backward
657 map kitty_mod+alt+t set_tab_title
658
659 #: You can also create shortcuts to go to specific tabs, with 1 being
660 #: the first tab, 2 the second tab and -1 being the previously active
661 #: tab, and any number larger than the last tab being the last tab::
662
663 #: map ctrl+alt+1 goto_tab 1
664 #: map ctrl+alt+2 goto_tab 2
665
666 #: Just as with new_window above, you can also pass the name of
667 #: arbitrary commands to run when using new_tab and use
668 #: new_tab_with_cwd. Finally, if you want the new tab to open next to
669 #: the current tab rather than at the end of the tabs list, use::
670
671 #: map ctrl+t new_tab !neighbor [optional cmd to run]
672 #: }}}
673
674 #: Layout management {{{
675
676 map kitty_mod+l next_layout
677
678 #: You can also create shortcuts to switch to specific layouts::
679
680 #: map ctrl+alt+t goto_layout tall
681 #: map ctrl+alt+s goto_layout stack
682
683 #: Similarly, to switch back to the previous layout::
684
685 #: map ctrl+alt+p last_used_layout
686 #: }}}
687
688 #: Font sizes {{{
689
690 #: You can change the font size for all top-level kitty OS windows at
691 #: a time or only the current one.
692
693 map kitty_mod+equal change_font_size all +2.0
694 map kitty_mod+minus change_font_size all -2.0
695 map kitty_mod+backspace change_font_size all 0
696
697 #: To setup shortcuts for specific font sizes::
698
699 #: map kitty_mod+f6 change_font_size all 10.0
700
701 #: To setup shortcuts to change only the current OS window's font
702 #: size::
703
704 #: map kitty_mod+f6 change_font_size current 10.0
705 #: }}}
706
707 #: Select and act on visible text {{{
708
709 #: Use the hints kitten to select text and either pass it to an
710 #: external program or insert it into the terminal or copy it to the
711 #: clipboard.
712
713 map kitty_mod+e kitten hints
714
715 #: Open a currently visible URL using the keyboard. The program used
716 #: to open the URL is specified in open_url_with.
717
718 map kitty_mod+p>f kitten hints --type path --program -
719
720 #: Select a path/filename and insert it into the terminal. Useful, for
721 #: instance to run git commands on a filename output from a previous
722 #: git command.
723
724 map kitty_mod+p>shift+f kitten hints --type path
725
726 #: Select a path/filename and open it with the default open program.
727
728 map kitty_mod+p>l kitten hints --type line --program -
729
730 #: Select a line of text and insert it into the terminal. Use for the
731 #: output of things like: ls -1
732
733 map kitty_mod+p>w kitten hints --type word --program -
734
735 #: Select words and insert into terminal.
736
737 map kitty_mod+p>h kitten hints --type hash --program -
738
739 #: Select something that looks like a hash and insert it into the
740 #: terminal. Useful with git, which uses sha1 hashes to identify
741 #: commits
742
743 map kitty_mod+p>n kitten hints --type linenum
744
745 #: Select something that looks like filename:linenum and open it in
746 #: vim at the specified line number.
747
748
749 #: The hints kitten has many more modes of operation that you can map
750 #: to different shortcuts. For a full description see kittens/hints.
751 #: }}}
752
753 #: Miscellaneous {{{
754
755 map kitty_mod+f11 toggle_fullscreen
756 map kitty_mod+f10 toggle_maximized
757 map kitty_mod+u kitten unicode_input
758 map kitty_mod+f2 edit_config_file
759 map kitty_mod+escape kitty_shell window
760
761 #: Open the kitty shell in a new window/tab/overlay/os_window to
762 #: control kitty using commands.
763
764 map kitty_mod+a>m set_background_opacity +0.1
765 map kitty_mod+a>l set_background_opacity -0.1
766 map kitty_mod+a>1 set_background_opacity 1
767 map kitty_mod+a>d set_background_opacity default
768 map kitty_mod+delete clear_terminal reset active
769
770 #: You can create shortcuts to clear/reset the terminal. For example::
771
772 #: # Reset the terminal
773 #: map kitty_mod+f9 clear_terminal reset active
774 #: # Clear the terminal screen by erasing all contents
775 #: map kitty_mod+f10 clear_terminal clear active
776 #: # Clear the terminal scrollback by erasing it
777 #: map kitty_mod+f11 clear_terminal scrollback active
778 #: # Scroll the contents of the screen into the scrollback
779 #: map kitty_mod+f12 clear_terminal scroll active
780
781 #: If you want to operate on all windows instead of just the current
782 #: one, use all instead of active.
783
784 #: It is also possible to remap Ctrl+L to both scroll the current
785 #: screen contents into the scrollback buffer and clear the screen,
786 #: instead of just clearing the screen::
787
788 #: map ctrl+l combine : clear_terminal scroll active : send_text normal,application \x0c
789
790
791 #: You can tell kitty to send arbitrary (UTF-8) encoded text to the
792 #: client program when pressing specified shortcut keys. For example::
793
794 #: map ctrl+alt+a send_text all Special text
795
796 #: This will send "Special text" when you press the ctrl+alt+a key
797 #: combination. The text to be sent is a python string literal so you
798 #: can use escapes like \x1b to send control codes or \u21fb to send
799 #: unicode characters (or you can just input the unicode characters
800 #: directly as UTF-8 text). The first argument to send_text is the
801 #: keyboard modes in which to activate the shortcut. The possible
802 #: values are normal or application or kitty or a comma separated
803 #: combination of them. The special keyword all means all modes. The
804 #: modes normal and application refer to the DECCKM cursor key mode
805 #: for terminals, and kitty refers to the special kitty extended
806 #: keyboard protocol.
807
808 #: Another example, that outputs a word and then moves the cursor to
809 #: the start of the line (same as pressing the Home key)::
810
811 #: map ctrl+alt+a send_text normal Word\x1b[H
812 #: map ctrl+alt+a send_text application Word\x1bOH
813
814 background_opacity 0.95
815
816 ## -----------------------------------------------------------------------------
817 ## File: gruvbox-dark.conf
818 ## Description: Retro groove colorscheme generalized
819 ## Author: morhetz <morhetz@gmail.com>
820 ## Source: https://github.com/morhetz/gruvbox-generalized
821 ## Last Modified: 9 Feb 2019
822 ## -----------------------------------------------------------------------------
823 #
824 ## hard contrast: background #1d2021
825 #background #282828
826 ## soft contrast: background #32302f
827 #foreground #ebdbb2
828 #cursor #fbf1c7
829 #url_color #83a598
830 ## Black + DarkGrey
831 #color0 #282828
832 #color8 #928374
833 ## DarkRed + Red
834 #color1 #cc241d
835 #color9 #fb4934
836 ## DarkGreen + Green
837 #color2 #98971a
838 #color10 #b8bb26
839 ## DarkYellow + Yellow
840 #color3 #d79921
841 #color11 #fabd2f
842 ## DarkBlue + Blue
843 #color4 #458588
844 #color12 #83a598
845 ## DarkMagenta + Magenta
846 #color5 #b16286
847 #color13 #d3869b
848 ## DarkCyan + Cyan
849 #color6 #689d6a
850 #color14 #8ec07c
851 ## LightGrey + White
852 #color7 #a89984
853 #color15 #ebdbb2
854
855 foreground #dddddd
856 # background #242a36
857 background #2e3440
858
859 #: The foreground and background colors
860
861 background_opacity 0.95
862
863 #: The opacity of the background. A number between 0 and 1, where 1 is
864 #: opaque and 0 is fully transparent. This will only work if
865 #: supported by the OS (for instance, when using a compositor under
866 #: X11). Note that it only sets the default background color's
867 #: opacity. This is so that things like the status bar in vim,
868 #: powerline prompts, etc. still look good. But it means that if you
869 #: use a color theme with a background color in your editor, it will
870 #: not be rendered as transparent. Instead you should change the
871 #: default background color in your kitty config and not use a
872 #: background color in the editor color scheme. Or use the escape
873 #: codes to set the terminals default colors in a shell script to
874 #: launch your editor. Be aware that using a value less than 1.0 is a
875 #: (possibly significant) performance hit. If you want to dynamically
876 #: change transparency of windows set dynamic_background_opacity to
877 #: yes (this is off by default as it has a performance cost)
878
879 dynamic_background_opacity no
880
881 #: Allow changing of the background_opacity dynamically, using either
882 #: keyboard shortcuts (increase_background_opacity and
883 #: decrease_background_opacity) or the remote control facility.
884
885 dim_opacity 0.75
886
887 #: How much to dim text that has the DIM/FAINT attribute set. One
888 #: means no dimming and zero means fully dimmed (i.e. invisible).
889
890 selection_foreground #000000
891
892 #: The foreground for text selected with the mouse. A value of none
893 #: means to leave the color unchanged.
894
895 selection_background #fffacd
896
897 #: The background for text selected with the mouse.
898
899
900 #: The 16 terminal colors. There are 8 basic colors, each color has a
901 #: dull and bright version. You can also set the remaining colors from
902 #: the 256 color table as color16 to color255.
903
904 color0 #3B4252
905 color8 #4C566A
906
907 #: black
908
909 color1 #BF616A
910 color9 #BF616A
911
912 #: red
913
914 color2 #A3BE8C
915 color10 #A3BE8C
916
917 #: green
918
919 color3 #EBCB8B
920 color11 #EBCB8B
921
922 #: yellow
923
924 color4 #81A1C1
925 color12 #81A1C1
926
927 #: blue
928
929 color5 #B48EAD
930 color13 #B48EAD
931
932 #: magenta
933
934 color6 #88C0D0
935 color14 #8FBCBB
936
937 #: cyan
938
939 color7 #E5E9F0
940 color15 #ECEFF4
941
942 #: white
943
944 mark1_foreground black
945
946 #: Color for marks of type 1
947
948 mark1_background #98d3cb
949
950 #: Color for marks of type 1 (light steel blue)
951
952 mark2_foreground black
953
954 #: Color for marks of type 2
955
956 mark2_background #f2dcd3
957
958 #: Color for marks of type 1 (beige)
959
960 mark3_foreground black
961
962 #: Color for marks of type 3
963
964 mark3_background #f274bc