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.4KB

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