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