kitty.conf 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. # vim:fileencoding=utf-8:ft=conf: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 Iosevka
  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. By default they are derived automatically, by the OSes
  12. #: font system. Setting them manually is useful for font families that
  13. #: have many weight variants like Book, Medium, Thick, etc. For
  14. #: example::
  15. #: font_family Operator Mono Book
  16. #: bold_font Operator Mono Medium
  17. #: italic_font Operator Mono Book Italic
  18. #: bold_italic_font Operator Mono Medium Italic
  19. font_size 10.0
  20. #: Font size (in pts)
  21. # adjust_line_height 0
  22. # adjust_column_width 0
  23. #: Change the size of each character cell kitty renders. You can use
  24. #: either numbers, which are interpreted as pixels or percentages
  25. #: (number followed by %), which are interpreted as percentages of the
  26. #: unmodified values. You can use negative pixels or percentages less
  27. #: than 100% to reduce sizes (but this might cause rendering
  28. #: artifacts).
  29. # symbol_map U+E0A0-U+E0A2,U+E0B0-U+E0B3 PowerlineSymbols
  30. #: Map the specified unicode codepoints to a particular font. Useful
  31. #: if you need special rendering for some symbols, such as for
  32. #: Powerline. Avoids the need for patched fonts. Each unicode code
  33. #: point is specified in the form U+<code point in hexadecimal>. You
  34. #: can specify multiple code points, separated by commas and ranges
  35. #: separated by hyphens. symbol_map itself can be specified multiple
  36. #: times. Syntax is::
  37. #: symbol_map codepoints Font Family Name
  38. # box_drawing_scale 0.001, 1, 1.5, 2
  39. #: Change the sizes of the lines used for the box drawing unicode
  40. #: characters These values are in pts. They will be scaled by the
  41. #: monitor DPI to arrive at a pixel value. There must be four values
  42. #: corresponding to thin, normal, thick, and very thick lines.
  43. #: }}}
  44. #: Cursor customization {{{
  45. # cursor #cccccc
  46. #: Default cursor color
  47. # cursor_shape block
  48. #: The cursor shape can be one of (block, beam, underline)
  49. # cursor_blink_interval 0.5
  50. # cursor_stop_blinking_after 15.0
  51. #: The interval (in seconds) at which to blink the cursor. Set to zero
  52. #: to disable blinking. Note that numbers smaller than repaint_delay
  53. #: will be limited to repaint_delay. Stop blinking cursor after the
  54. #: specified number of seconds of keyboard inactivity. Set to zero to
  55. #: never stop blinking.
  56. #: }}}
  57. #: Scrollback {{{
  58. # scrollback_lines 2000
  59. #: Number of lines of history to keep in memory for scrolling back.
  60. #: Memory is allocated on demand.
  61. # scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
  62. #: Program with which to view scrollback in a new window. The
  63. #: scrollback buffer is passed as STDIN to this program. If you change
  64. #: it, make sure the program you use can handle ANSI escape sequences
  65. #: for colors and text formatting. INPUT_LINE_NUMBER in the command
  66. #: line above will be replaced by an integer representing which line
  67. #: should be at the top of the screen.
  68. # wheel_scroll_multiplier 5.0
  69. #: Modify the amount scrolled by the mouse wheel or touchpad. Use
  70. #: negative numbers to change scroll direction.
  71. #: }}}
  72. #: Mouse {{{
  73. # url_color #0087BD
  74. # url_style curly
  75. #: The color and style for highlighting URLs on mouse-over. url_style
  76. #: can be one of: none, single, double, curly
  77. # open_url_modifiers kitty_mod
  78. #: The modifier keys to press when clicking with the mouse on URLs to
  79. #: open the URL
  80. # open_url_with default
  81. #: The program with which to open URLs that are clicked on. The
  82. #: special value default means to use the operating system's default
  83. #: URL handler.
  84. # copy_on_select no
  85. #: Copy to clipboard on select. With this enabled, simply selecting
  86. #: text with the mouse will cause the text to be copied to clipboard.
  87. #: Useful on platforms such as macOS/Wayland that do not have the
  88. #: concept of primary selections. Note that this is a security risk,
  89. #: as all programs, including websites open in your browser can read
  90. #: the contents of the clipboard.
  91. # rectangle_select_modifiers ctrl+alt
  92. #: The modifiers to use rectangular selection (i.e. to select text in
  93. #: a rectangular block with the mouse)
  94. # select_by_word_characters :@-./_~?&=%+#
  95. #: Characters considered part of a word when double clicking. In
  96. #: addition to these characters any character that is marked as an
  97. #: alpha-numeric character in the unicode database will be matched.
  98. # click_interval 0.5
  99. #: The interval between successive clicks to detect double/triple
  100. #: clicks (in seconds)
  101. # mouse_hide_wait 3.0
  102. #: Hide mouse cursor after the specified number of seconds of the
  103. #: mouse not being used. Set to zero to disable mouse cursor hiding.
  104. # focus_follows_mouse no
  105. #: Set the active window to the window under the mouse when moving the
  106. #: mouse around
  107. #: }}}
  108. #: Performance tuning {{{
  109. # repaint_delay 10
  110. #: Delay (in milliseconds) between screen updates. Decreasing it,
  111. #: increases frames-per-second (FPS) at the cost of more CPU usage.
  112. #: The default value yields ~100 FPS which is more than sufficient for
  113. #: most uses. Note that to actually achieve 100 FPS you have to either
  114. #: set sync_to_monitor to no or use a monitor with a high refresh
  115. #: rate.
  116. # input_delay 3
  117. #: Delay (in milliseconds) before input from the program running in
  118. #: the terminal is processed. Note that decreasing it will increase
  119. #: responsiveness, but also increase CPU usage and might cause flicker
  120. #: in full screen programs that redraw the entire screen on each loop,
  121. #: because kitty is so fast that partial screen updates will be drawn.
  122. # sync_to_monitor yes
  123. #: Sync screen updates to the refresh rate of the monitor. This
  124. #: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing)
  125. #: when scrolling. However, it limits the rendering speed to the
  126. #: refresh rate of your monitor. With a very high speed mouse/high
  127. #: keyboard repeat rate, you may notice some slight input latency. If
  128. #: so, set this to no.
  129. #: }}}
  130. #: Terminal bell {{{
  131. enable_audio_bell no
  132. #: Enable/disable the audio bell. Useful in environments that require
  133. #: silence.
  134. visual_bell_duration 0.1
  135. #: Visual bell duration. Flash the screen when a bell occurs for the
  136. #: specified number of seconds. Set to zero to disable.
  137. # window_alert_on_bell yes
  138. #: Request window attention on bell. Makes the dock icon bounce on
  139. #: macOS or the taskbar flash on linux.
  140. # bell_on_tab yes
  141. #: Show a bell symbol on the tab if a bell occurs in one of the
  142. #: windows in the tab and the window is not the currently focused
  143. #: window
  144. #: }}}
  145. #: Window layout {{{
  146. # remember_window_size yes
  147. # initial_window_width 640
  148. # initial_window_height 400
  149. #: If enabled, the window size will be remembered so that new
  150. #: instances of kitty will have the same size as the previous
  151. #: instance. If disabled, the window will initially have size
  152. #: configured by initial_window_width/height, in pixels. You can use a
  153. #: suffix of "c" on the width/height values to have them interpreted
  154. #: as number of cells instead of pixels.
  155. # enabled_layouts *
  156. #: The enabled window layouts. A comma separated list of layout names.
  157. #: The special value * means all layouts. The first listed layout will
  158. #: be used as the startup layout. For a list of available layouts, see
  159. #: the layouts.
  160. # window_resize_step_cells 2
  161. # window_resize_step_lines 2
  162. #: The step size (in units of cell width/cell height) to use when
  163. #: resizing windows. The cells value is used for horizontal resizing
  164. #: and the lines value for vertical resizing.
  165. # window_border_width 1.0
  166. #: The width (in pts) of window borders. Will be rounded to the
  167. #: nearest number of pixels based on screen resolution. Note that
  168. #: borders are displayed only when more than one window is visible.
  169. #: They are meant to separate multiple windows.
  170. # draw_minimal_borders yes
  171. #: Draw only the minimum borders needed. This means that only the
  172. #: minimum needed borders for inactive windows are drawn. That is only
  173. #: the borders that separate the inactive window from a neighbor. Note
  174. #: that setting a non-zero window margin overrides this and causes all
  175. #: borders to be drawn.
  176. # window_margin_width 0.0
  177. #: The window margin (in pts) (blank area outside the border)
  178. # single_window_margin_width -1000.0
  179. #: The window margin (in pts) to use when only a single window is
  180. #: visible. Negative values will cause the value of
  181. #: window_margin_width to be used instead.
  182. # window_padding_width 0.0
  183. #: The window padding (in pts) (blank area between the text and the
  184. #: window border)
  185. # active_border_color #00ff00
  186. #: The color for the border of the active window
  187. # inactive_border_color #cccccc
  188. #: The color for the border of inactive windows
  189. # bell_border_color #ff5a00
  190. #: The color for the border of inactive windows in which a bell has
  191. #: occurred
  192. # inactive_text_alpha 1.0
  193. #: Fade the text in inactive windows by the specified amount (a number
  194. #: between zero and one, with zero being fully faded).
  195. #: }}}
  196. #: Tab bar {{{
  197. tab_bar_edge top
  198. #: Which edge to show the tab bar on, top or bottom
  199. # tab_bar_margin_width 0.0
  200. #: The margin to the left and right of the tab bar (in pts)
  201. # tab_bar_style fade
  202. #: The tab bar style, can be one of: fade or separator. In the fade
  203. #: style, each tab's edges fade into the background color, in the
  204. #: separator style, tabs are separated by a configurable separator.
  205. # tab_fade 0.25 0.5 0.75 1
  206. #: Control how each tab fades into the background when using fade for
  207. #: the tab_bar_style. Each number is an alpha (between zero and one)
  208. #: that controls how much the corresponding cell fades into the
  209. #: background, with zero being no fade and one being full fade. You
  210. #: can change the number of cells used by adding/removing entries to
  211. #: this list.
  212. # tab_separator " ┇"
  213. #: The separator between tabs in the tab bar when using separator as
  214. #: the tab_bar_style.
  215. # active_tab_foreground #000
  216. # active_tab_background #eee
  217. # active_tab_font_style bold-italic
  218. # inactive_tab_foreground #444
  219. # inactive_tab_background #999
  220. # inactive_tab_font_style normal
  221. #: Tab bar colors and styles
  222. #: }}}
  223. #: Color scheme {{{
  224. # foreground #dddddd
  225. # background #000000
  226. #: The foreground and background colors
  227. # background_opacity 1.0
  228. # dynamic_background_opacity no
  229. #: The opacity of the background. A number between 0 and 1, where 1 is
  230. #: opaque and 0 is fully transparent. This will only work if
  231. #: supported by the OS (for instance, when using a compositor under
  232. #: X11). Note that it only sets the default background color's
  233. #: opacity. This is so that things like the status bar in vim,
  234. #: powerline prompts, etc. still look good. But it means that if you
  235. #: use a color theme with a background color in your editor, it will
  236. #: not be rendered as transparent. Instead you should change the
  237. #: default background color in your kitty config and not use a
  238. #: background color in the editor color scheme. Or use the escape
  239. #: codes to set the terminals default colors in a shell script to
  240. #: launch your editor. Be aware that using a value less than 1.0 is a
  241. #: (possibly significant) performance hit. If you want to dynamically
  242. #: change transparency of windows set dynamic_background_opacity to
  243. #: yes (this is off by default as it has a performance cost)
  244. # dim_opacity 0.75
  245. #: How much to dim text that has the DIM/FAINT attribute set. One
  246. #: means no dimming and zero means fully dimmed (i.e. invisible).
  247. # selection_foreground #000000
  248. # selection_background #FFFACD
  249. #: The foreground and background for text selected with the mouse
  250. #: The 16 terminal colors. There are 8 basic colors, each color has a
  251. #: dull and bright version. You can also set the remaining colors from
  252. #: the 256 color table as color16 to color255.
  253. # color0 #000000
  254. # color8 #767676
  255. #: black
  256. # color1 #cc0403
  257. # color9 #f2201f
  258. #: red
  259. # color2 #19cb00
  260. # color10 #23fd00
  261. #: green
  262. # color3 #cecb00
  263. # color11 #fffd00
  264. #: yellow
  265. # color4 #0d73cc
  266. # color12 #1a8fff
  267. #: blue
  268. # color5 #cb1ed1
  269. # color13 #fd28ff
  270. #: magenta
  271. # color6 #0dcdcd
  272. # color14 #14ffff
  273. #: cyan
  274. # color7 #dddddd
  275. # color15 #ffffff
  276. #: white
  277. #: }}}
  278. #: Advanced {{{
  279. # shell .
  280. #: The shell program to execute. The default value of . means to use
  281. #: whatever shell is set as the default shell for the current user.
  282. #: Note that on macOS if you change this, you might need to add
  283. #: --login to ensure that the shell starts in interactive mode and
  284. #: reads its startup rc files.
  285. # editor .
  286. #: The console editor to use when editing the kitty config file or
  287. #: similar tasks. A value of . means to use the environment variable
  288. #: EDITOR. Note that this environment variable has to be set not just
  289. #: in your shell startup scripts but system-wide, otherwise kitty will
  290. #: not see it.
  291. # close_on_child_death no
  292. #: Close the window when the child process (shell) exits. If no (the
  293. #: default), the terminal will remain open when the child exits as
  294. #: long as there are still processes outputting to the terminal (for
  295. #: example disowned or backgrounded processes). If yes, the window
  296. #: will close as soon as the child process exits. Note that setting it
  297. #: to yes means that any background processes still using the terminal
  298. #: can fail silently because their stdout/stderr/stdin no longer work.
  299. # allow_remote_control no
  300. #: Allow other programs to control kitty. If you turn this on other
  301. #: programs can control all aspects of kitty, including sending text
  302. #: to kitty windows, opening new windows, closing windows, reading the
  303. #: content of windows, etc. Note that this even works over ssh
  304. #: connections.
  305. # startup_session none
  306. #: Path to a session file to use for all kitty instances. Can be
  307. #: overridden by using the kitty --session command line option for
  308. #: individual instances. See sessions in the kitty documentation for
  309. #: details. Note that relative paths are interpreted with respect to
  310. #: the kitty config directory. Environment variables in the path are
  311. #: expanded.
  312. # clipboard_control write-clipboard write-primary
  313. #: Allow programs running in kitty to read and write from the
  314. #: clipboard. You can control exactly which actions are allowed. The
  315. #: set of possible actions is: write-clipboard read-clipboard write-
  316. #: primary read-primary The default is to allow writing to the
  317. #: clipboard and primary selection. Note that enabling the read
  318. #: functionality is a security risk as it means that any program, even
  319. #: one running on a remote server via SSH can read your clipboard.
  320. term xterm-256color
  321. #: The value of the TERM environment variable to set. Changing this
  322. #: can break many terminal programs, only change it if you know what
  323. #: you are doing, not because you read some advice on Stack Overflow
  324. #: to change it.
  325. #: }}}
  326. #: OS specific tweaks {{{
  327. # macos_titlebar_color system
  328. #: Change the color of the kitty window's titlebar on macOS. A value
  329. #: of system means to use the default system color, a value of
  330. #: background means to use the background color of the currently
  331. #: active window and finally you can use an arbitrary color, such as
  332. #: #12af59 or red. WARNING: This option works by using a hack, as
  333. #: there is no proper Cocoa API for it. It sets the background color
  334. #: of the entire window and makes the titlebar transparent. As such it
  335. #: is incompatible with background_opacity. If you want to use both,
  336. #: you are probably better off just hiding the titlebar with
  337. #: macos_hide_titlebar.
  338. # macos_hide_titlebar no
  339. #: Hide the kitty window's title bar on macOS.
  340. # x11_hide_window_decorations no
  341. #: Hide the window decorations (title bar and window borders) on X11
  342. #: and Wayland. Whether this works and exactly what effect it has
  343. #: depends on the window manager, as it is the job of the window
  344. #: manager/compositor to draw window decorations.
  345. # macos_option_as_alt yes
  346. #: Use the option key as an alt key. With this set to no, kitty will
  347. #: use the macOS native Option+Key = unicode character behavior. This
  348. #: will break any Alt+key keyboard shortcuts in your terminal
  349. #: programs, but you can use the macOS unicode input technique.
  350. # macos_hide_from_tasks no
  351. #: Hide the kitty window from running tasks (Option+Tab) on macOS.
  352. # macos_quit_when_last_window_closed no
  353. #: Have kitty quit when all the top-level windows are closed. By
  354. #: default, kitty will stay running, even with no open windows, as is
  355. #: the expected behavior on macOS.
  356. # macos_window_resizable yes
  357. #: Disable this if you want kitty top-level (OS) windows to not be
  358. #: resizable on macOS.
  359. #: }}}
  360. #: Keyboard shortcuts {{{
  361. #: For a list of key names, see: GLFW keys
  362. #: <http://www.glfw.org/docs/latest/group__keys.html>. The name to use
  363. #: is the part after the GLFW_KEY_ prefix. For a list of modifier
  364. #: names, see: GLFW mods
  365. #: <http://www.glfw.org/docs/latest/group__mods.html>
  366. #: On Linux you can also use XKB key names to bind keys that are not
  367. #: supported by GLFW. See XKB keys
  368. #: <https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-
  369. #: keysyms.h> for a list of key names. The name to use is the part
  370. #: after the XKB_KEY_ prefix. Note that you should only use an XKB key
  371. #: name for keys that are not present in the list of GLFW keys.
  372. #: You can use the special action no_op to unmap a keyboard shortcut
  373. #: that is assigned in the default configuration.
  374. #: You can combine multiple actions to be triggered by a single
  375. #: shortcut, using the syntax below::
  376. #: map key combine <separator> action1 <separator> action2 <separator> action3 ...
  377. #: For example::
  378. #: map kitty_mod+e combine : new_window : next_layout
  379. #: this will create a new window and switch to the next available
  380. #: layout
  381. #: You can use multi-key shortcuts using the syntax shown below::
  382. #: map key1>key2>key3 action
  383. #: For example::
  384. #: map ctrl+f>2 set_font_size 20
  385. # kitty_mod ctrl+shift
  386. #: The value of kitty_mod is used as the modifier for all default
  387. #: shortcuts, you can change it in your kitty.conf to change the
  388. #: modifiers for all the default shortcuts.
  389. # clear_all_shortcuts no
  390. #: You can have kitty remove all shortcut definition seen up to this
  391. #: point. Useful, for instance, to remove the default shortcuts.
  392. #: Clipboard {{{
  393. # map cmd+c copy_to_clipboard
  394. # map kitty_mod+c copy_to_clipboard
  395. # map cmd+v paste_from_clipboard
  396. # map kitty_mod+v paste_from_clipboard
  397. # map kitty_mod+s paste_from_selection
  398. # map shift+insert paste_from_selection
  399. # map kitty_mod+o pass_selection_to_program
  400. #: You can also pass the contents of the current selection to any
  401. #: program using pass_selection_to_program. By default, the system's
  402. #: open program is used, but you can specify your own, for example::
  403. #: map kitty_mod+o pass_selection_to_program firefox
  404. #: You can pass the current selection to a terminal program running in
  405. #: a new kitty window, by using the @selection placeholder::
  406. #: map kitty_mod+y new_window less @selection
  407. #: }}}
  408. #: Scrolling {{{
  409. # map kitty_mod+up scroll_line_up
  410. # map kitty_mod+k scroll_line_up
  411. # map kitty_mod+down scroll_line_down
  412. # map kitty_mod+j scroll_line_down
  413. # map kitty_mod+page_up scroll_page_up
  414. # map kitty_mod+page_down scroll_page_down
  415. # map kitty_mod+home scroll_home
  416. # map kitty_mod+end scroll_end
  417. # map kitty_mod+h show_scrollback
  418. #: You can send the contents of the current screen + history buffer as
  419. #: stdin to an arbitrary program using the placeholders @text (which
  420. #: is the plain text) and @ansi (which includes text styling escape
  421. #: codes). For only the current screen, use @screen or @ansi_screen.
  422. #: For example, the following command opens the scrollback buffer in
  423. #: less in a new window::
  424. #: map kitty_mod+y new_window @ansi less +G -R
  425. #: }}}
  426. #: Window management {{{
  427. # map kitty_mod+enter new_window
  428. #: You can open a new window running an arbitrary program, for
  429. #: example::
  430. #: map kitty_mod+y new_window mutt
  431. #: You can open a new window with the current working directory set to
  432. #: the working directory of the current window using::
  433. #: map ctrl+alt+enter new_window_with_cwd
  434. # map cmd+n new_os_window
  435. # map kitty_mod+n new_os_window
  436. # map kitty_mod+w close_window
  437. # map kitty_mod+] next_window
  438. # map kitty_mod+[ previous_window
  439. # map kitty_mod+f move_window_forward
  440. # map kitty_mod+b move_window_backward
  441. # map kitty_mod+` move_window_to_top
  442. # map kitty_mod+r start_resizing_window
  443. # map kitty_mod+1 first_window
  444. # map kitty_mod+2 second_window
  445. # map kitty_mod+3 third_window
  446. # map kitty_mod+4 fourth_window
  447. # map kitty_mod+5 fifth_window
  448. # map kitty_mod+6 sixth_window
  449. # map kitty_mod+7 seventh_window
  450. # map kitty_mod+8 eighth_window
  451. # map kitty_mod+9 ninth_window
  452. # map kitty_mod+0 tenth_window
  453. #: }}}
  454. #: Tab management {{{
  455. # map kitty_mod+right next_tab
  456. # map kitty_mod+left previous_tab
  457. # map kitty_mod+t new_tab
  458. # map kitty_mod+q close_tab
  459. # map kitty_mod+. move_tab_forward
  460. # map kitty_mod+, move_tab_backward
  461. # map kitty_mod+alt+t set_tab_title
  462. #: You can also create shortcuts to go to specific tabs, with 1 being
  463. #: the first tab::
  464. #: map ctrl+alt+1 goto_tab 1
  465. #: map ctrl+alt+2 goto_tab 2
  466. #: Just as with new_window above, you can also pass the name of
  467. #: arbitrary commands to run when using new_tab and use
  468. #: new_tab_with_cwd.
  469. #: }}}
  470. #: Layout management {{{
  471. # map kitty_mod+l next_layout
  472. #: You can also create shortcuts to switch to specific layouts::
  473. #: map ctrl+alt+t goto_layout tall
  474. #: map ctrl+alt+s goto_layout stack
  475. #: }}}
  476. #: Font sizes {{{
  477. #: You can change the font size for all top-level kitty windows at a
  478. #: time or only the current one.
  479. # map kitty_mod+equal change_font_size all +2.0
  480. # map kitty_mod+minus change_font_size all -2.0
  481. # map kitty_mod+backspace change_font_size all 0
  482. #: To setup shortcuts for specific font sizes::
  483. #: map kitty_mod+f6 change_font_size all 10.0
  484. #: To setup shortcuts to change only the current window's font size::
  485. #: map kitty_mod+f6 change_font_size current 10.0
  486. #: }}}
  487. #: Select and act on visible text {{{
  488. #: Use the hints kitten to select text and either pass it to an
  489. #: external program or insert it into the terminal or copy it to the
  490. #: clipboard.
  491. # map kitty_mod+e kitten hints
  492. #: Open a currently visible URL using the keyboard. The program used
  493. #: to open the URL is specified in open_url_with.
  494. # map kitty_mod+p>f kitten hints --type path --program -
  495. #: Select a path/filename and insert it into the terminal. Useful, for
  496. #: instance to run git commands on a filename output from a previous
  497. #: git command.
  498. # map kitty_mod+p>shift+f kitten hints --type path
  499. #: Select a path/filename and open it with the default open program.
  500. # map kitty_mod+p>l kitten hints --type line --program -
  501. #: Select a line of text and insert it into the terminal. Use for the
  502. #: output of things like: ls -1
  503. # map kitty_mod+p>w kitten hints --type word --program -
  504. #: Select words and insert into terminal.
  505. # map kitty_mod+p>h kitten hints --type hash --program -
  506. #: Select something that looks like a hash and insert it into the
  507. #: terminal. Useful with git, which uses sha1 hashes to identify
  508. #: commits
  509. #: The hints kitten has many more modes of operation that you can map
  510. #: to different shortcuts. For a full description see kittens/hints.
  511. #: }}}
  512. #: Miscellaneous {{{
  513. # map kitty_mod+f11 toggle_fullscreen
  514. # map kitty_mod+u input_unicode_character
  515. # map kitty_mod+f2 edit_config_file
  516. # map kitty_mod+escape kitty_shell window
  517. #: Open the kitty shell in a new window/tab/overlay/os_window to
  518. #: control kitty using commands.
  519. # map kitty_mod+a>m set_background_opacity +0.1
  520. # map kitty_mod+a>l set_background_opacity -0.1
  521. # map kitty_mod+a>1 set_background_opacity 1
  522. # map kitty_mod+a>d set_background_opacity default
  523. #: You can tell kitty to send arbitrary (UTF-8) encoded text to the
  524. #: client program when pressing specified shortcut keys. For example::
  525. #: map ctrl+alt+a send_text all Special text
  526. #: This will send "Special text" when you press the ctrl+alt+a key
  527. #: combination. The text to be sent is a python string literal so you
  528. #: can use escapes like \x1b to send control codes or \u21fb to send
  529. #: unicode characters (or you can just input the unicode characters
  530. #: directly as UTF-8 text). The first argument to send_text is the
  531. #: keyboard modes in which to activate the shortcut. The possible
  532. #: values are normal or application or kitty or a comma separated
  533. #: combination of them. The special keyword all means all modes. The
  534. #: modes normal and application refer to the DECCKM cursor key mode
  535. #: for terminals, and kitty refers to the special kitty extended
  536. #: keyboard protocol.
  537. #: Another example, that outputs a word and then moves the cursor to
  538. #: the start of the line (same as pressing the Home key)::
  539. #: map ctrl+alt+a send_text normal Word\x1b[H
  540. #: map ctrl+alt+a send_text application Word\x1bOH
  541. #: }}}
  542. # }}}