You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kitty.conf 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. include colors.conf
  2. font_family Iosevka Term SS04
  3. italic_font Iosevka Term SS04 Italic
  4. bold_font Iosevka Term SS04 Bold
  5. bold_italic_font Iosevka Term SS04 Bold Italic
  6. font_size 12.0
  7. adjust_line_height 0
  8. adjust_column_width 0
  9. box_drawing_scale 0.001, 1, 1.5, 2
  10. cursor_blink_interval 0.5
  11. cursor_stop_blinking_after 15.0
  12. scrollback_lines 2000
  13. scrollback_pager_history_size 10
  14. scrollback_pager less --chop-long-lines -R +INPUT_LINE_NUMBER
  15. wheel_scroll_multiplier 5.0
  16. click_interval 0.5
  17. strip_trailing_spaces always
  18. select_by_word_characters :@-./_~?&=%+#
  19. shell elvish
  20. editor kak
  21. mouse_hide_wait 0
  22. focus_follows_mouse yes
  23. enabled_layouts *
  24. # 'c' suffix for cells instead of pixels
  25. remember_window_size no
  26. initial_window_width 640
  27. initial_window_height 400
  28. hide_window_decorations no
  29. repaint_delay 15
  30. input_delay 3
  31. sync_to_monitor no
  32. visual_bell_duration 0.0
  33. enable_audio_bell yes
  34. window_alert_on_bell yes
  35. bell_on_tab yes
  36. open_url_modifiers kitty_mod
  37. open_url_with default
  38. rectangle_select_modifiers ctrl+alt
  39. close_on_child_death no
  40. copy_on_select no
  41. allow_remote_control yes
  42. startup_session none
  43. clipboard_control write-clipboard write-primary read-clipboard read-primary
  44. term xterm-kitty
  45. window_border_width 1
  46. window_margin_width 0
  47. window_padding_width 0
  48. inactive_text_alpha 1.0
  49. resize_debounce_time 0.1
  50. resize_draw_strategy size
  51. tab_bar_edge bottom
  52. tab_bar_margin_width 0
  53. # fade | separator
  54. tab_bar_style separator
  55. tab_bar_min_tabs 2
  56. tab_switch_strategy previous
  57. tab_fade 0.15 0.3 0.45 0.8
  58. tab_separator " ┇"
  59. tab_title_template {title}
  60. active_tab_font_style bold-italic
  61. inactive_tab_font_style normal
  62. url_style double
  63. background_opacity 1.0
  64. dynamic_background_opacity no
  65. dim_opacity 0.75
  66. cursor_shape beam
  67. # Key mapping
  68. # http://www.glfw.org/docs/latest/group__keys.html
  69. # http://www.glfw.org/docs/latest/group__mods.html
  70. # The name to use is the part after the `GLFW_KEY_` prefix.
  71. #
  72. # https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-keysyms.h
  73. # The name to use is the part after the `XKB_KEY_` prefix
  74. # + - chord
  75. # > - sequence
  76. # no_op - unbind
  77. # map key combine <separator> action1 <separator> action2 <separator> action3 ...
  78. kitty_mod ctrl+shift
  79. map ctrl+shift+delete clear_terminal reset active
  80. map kitty_mod+f9 clear_terminal reset active
  81. map kitty_mod+f10 clear_terminal clear active
  82. map kitty_mod+f11 clear_terminal scrollback active
  83. # Clipboard
  84. map kitty_mod+c copy_to_clipboard
  85. map kitty_mod+v paste_from_clipboard
  86. map shift+insert paste_from_selection
  87. # You can also pass the contents of the current selection to any program using
  88. # pass_selection_to_program. By default, the system's open program is used, but
  89. # you can specify your own, for example:
  90. # map kitty_mod+o pass_selection_to_program firefox
  91. # Scrolling
  92. map kitty_mod+up scroll_line_up
  93. map kitty_mod+down scroll_line_down
  94. map kitty_mod+k scroll_line_up
  95. map kitty_mod+j scroll_line_down
  96. map kitty_mod+page_up scroll_page_up
  97. map kitty_mod+page_down scroll_page_down
  98. map kitty_mod+home scroll_home
  99. map kitty_mod+end scroll_end
  100. map kitty_mod+h show_scrollback
  101. # Window management
  102. map kitty_mod+enter new_window
  103. map kitty_mod+w close_window
  104. map kitty_mod+] next_window
  105. map kitty_mod+[ previous_window
  106. map kitty_mod+f move_window_forward
  107. map kitty_mod+b move_window_backward
  108. map kitty_mod+` move_window_to_top
  109. map kitty_mod+1 first_window
  110. map kitty_mod+2 second_window
  111. map kitty_mod+3 third_window
  112. map kitty_mod+4 fourth_window
  113. map kitty_mod+5 fifth_window
  114. map kitty_mod+6 sixth_window
  115. map kitty_mod+7 seventh_window
  116. map kitty_mod+8 eighth_window
  117. map kitty_mod+9 ninth_window
  118. map kitty_mod+0 tenth_window
  119. # Tab management
  120. map kitty_mod+right next_tab
  121. map kitty_mod+left previous_tab
  122. map kitty_mod+t new_tab
  123. map kitty_mod+q close_tab
  124. map kitty_mod+l next_layout
  125. map kitty_mod+. move_tab_forward
  126. map kitty_mod+, move_tab_backward
  127. # You can also create shortcuts to go to specific tabs, with 1 being the first tab
  128. # map ctrl+alt+1 goto_tab 1
  129. # map ctrl+alt+2 goto_tab 2
  130. # Layout management
  131. # You can create shortcuts to switch to specific layouts
  132. # map ctrl+alt+1 goto_layout tall
  133. # map ctrl+alt+2 goto_layout stack
  134. # Font sizes
  135. # all | current
  136. map kitty_mod+equal change_font_size all +2.0
  137. map kitty_mod+minus change_font_size all -2.0
  138. map kitty_mod+backspace change_font_size all 0
  139. # map kitty_mod+f6 change_font_size all 10.0
  140. # map kitty_mod+f6 change_font_size current 10.0
  141. # Kittens
  142. # Open a currently visible URL using the keyboard. The program used to open the
  143. # URL is specified in open_url_with.
  144. map kitty_mod+e kitten hints
  145. # Select a path/filename and insert it into the terminal. Useful, for instance to
  146. # run git commands on a filename output from a previous git command.
  147. map kitty_mod+p>f kitten hints --type path --program -
  148. # Select a path/filename and open it with the default open program.
  149. map kitty_mod+p>shift+f kitten hints --type path
  150. # Select a line of text and insert it into the terminal. Use for the
  151. # output of things like: ls -1
  152. map kitty_mod+p>l kitten hints --type line --program -
  153. # Select words and insert into terminal.
  154. map kitty_mod+p>w kitten hints --type word --program -
  155. map kitty_mod+f11 toggle_fullscreen
  156. map kitty_mod+u input_unicode_character
  157. # Open the kitty shell in a new window/tab/overlay/os_window to control kitty using commands.
  158. map kitty_mod+f2 edit_config_file
  159. map kitty_mod+escape kitty_shell overlay
  160. map kitty_mod+a>m set_background_opacity +0.1
  161. map kitty_mod+a>l set_background_opacity -0.1
  162. map kitty_mod+a>1 set_background_opacity 1
  163. map kitty_mod+a>d set_background_opacity default
  164. # Launching and data passing
  165. # source: @selection @text @ansi @{,ansi_}{screen,alternate} none
  166. # target: os_window window tab overlay none
  167. # new_{window,tab,os_window}{,_with_cwd} $program? $source?
  168. # pipe $source $target $program
  169. map kitty_mod+f1 pipe @ansi_alternate overlay less +g -R
  170. # map f2 pipe @selection overlay less +g -R
  171. map ctrl+alt+enter new_os_window_with_cwd
  172. map ctrl+g new_tab_with_cwd tig
  173. # Sending arbitrary text on shortcut key presses
  174. # You can tell kitty to send arbitrary (UTF-8) encoded text to
  175. # the client program when pressing specified shortcut keys. For example:
  176. # map ctrl+alt+a send_text all Special text
  177. # This will send "Special text" when you press the Ctrl+Alt+a key combination.
  178. # The text to be sent is a python string literal so you can use escapes like
  179. # \x1b to send control codes or \u21fb to send unicode characters (or you can
  180. # just input the unicode characters directly as UTF-8 text). The first argument
  181. # to send_text is the keyboard modes in which to activate the shortcut. The possible
  182. # values are normal or application or kitty or a comma separated combination of them.
  183. # The special keyword all means all modes. The modes normal and application refer to
  184. # the DECCKM cursor key mode for terminals, and kitty refers to the special kitty
  185. # extended keyboard protocol. Another example, that outputs a word and then moves the cursor
  186. # to the start of the line (same as pressing the Home key):
  187. # map ctrl+alt+a send_text normal Word\x1b[H
  188. # map ctrl+alt+a send_text application Word\x1bOH
  189. symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B 3270Medium Nerd Font Mono