kitty.conf 93 KB

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