Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

kitty.conf 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. include colors.conf
  2. font_family Iosevka Fixed SS04 Medium
  3. italic_font Iosevka Fixed SS04 Medium Italic
  4. bold_font Iosevka Fixed SS04 Heavy
  5. bold_italic_font Iosevka Fixed SS04 Heavy Italic
  6. font_size 12.0
  7. adjust_line_height -1
  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 kak -e "rmhl global/number-lines;rmhl global/wrap;exec INPUT_LINE_NUMBERg"
  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 yes
  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. env PAGER=kakpager
  46. env MANPAGER=less
  47. env LESSHISTFILE=-
  48. window_border_width 1
  49. window_margin_width 0
  50. window_padding_width 0
  51. inactive_text_alpha 1.0
  52. resize_debounce_time 0.1
  53. resize_draw_strategy size
  54. tab_bar_edge bottom
  55. tab_bar_margin_width 0
  56. # fade | separator
  57. tab_bar_style separator
  58. tab_bar_min_tabs 2
  59. tab_switch_strategy previous
  60. tab_fade 0.15 0.3 0.45 0.8
  61. tab_separator " ┇"
  62. tab_title_template {title}
  63. active_tab_font_style bold-italic
  64. inactive_tab_font_style normal
  65. url_style double
  66. background_opacity 1.0
  67. dynamic_background_opacity no
  68. dim_opacity 0.75
  69. cursor_shape beam
  70. # Key mapping
  71. # http://www.glfw.org/docs/latest/group__keys.html
  72. # http://www.glfw.org/docs/latest/group__mods.html
  73. # The name to use is the part after the `GLFW_KEY_` prefix.
  74. #
  75. # https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-keysyms.h
  76. # The name to use is the part after the `XKB_KEY_` prefix
  77. # + - chord
  78. # > - sequence
  79. # no_op - unbind
  80. # map key combine <separator> action1 <separator> action2 <separator> action3 ...
  81. kitty_mod ctrl+shift
  82. map kitty_mod+delete clear_terminal reset active
  83. map kitty_mod+f9 clear_terminal reset active
  84. map kitty_mod+f10 clear_terminal clear active
  85. map kitty_mod+f11 clear_terminal scrollback active
  86. # Clipboard
  87. map kitty_mod+c copy_to_clipboard
  88. map kitty_mod+v paste_from_clipboard
  89. map shift+insert paste_from_selection
  90. # You can also pass the contents of the current selection to any program using
  91. # pass_selection_to_program. By default, the system's open program is used, but
  92. # you can specify your own, for example:
  93. # map kitty_mod+o pass_selection_to_program firefox
  94. # Scrolling
  95. map kitty_mod+up scroll_line_up
  96. map kitty_mod+down scroll_line_down
  97. map kitty_mod+k scroll_line_up
  98. map kitty_mod+j scroll_line_down
  99. map kitty_mod+page_up scroll_page_up
  100. map kitty_mod+page_down scroll_page_down
  101. map kitty_mod+home scroll_home
  102. map kitty_mod+end scroll_end
  103. map kitty_mod+h show_scrollback
  104. # Window management
  105. map kitty_mod+enter new_window
  106. map kitty_mod+w close_window
  107. map kitty_mod+] next_window
  108. map kitty_mod+[ previous_window
  109. map kitty_mod+f move_window_forward
  110. map kitty_mod+b move_window_backward
  111. map kitty_mod+` move_window_to_top
  112. map kitty_mod+1 first_window
  113. map kitty_mod+2 second_window
  114. map kitty_mod+3 third_window
  115. map kitty_mod+4 fourth_window
  116. map kitty_mod+5 fifth_window
  117. map kitty_mod+6 sixth_window
  118. map kitty_mod+7 seventh_window
  119. map kitty_mod+8 eighth_window
  120. map kitty_mod+9 ninth_window
  121. map kitty_mod+0 tenth_window
  122. # Tab management
  123. map kitty_mod+right next_tab
  124. map kitty_mod+left previous_tab
  125. map kitty_mod+t new_tab
  126. map kitty_mod+q close_tab
  127. map kitty_mod+l next_layout
  128. map kitty_mod+. move_tab_forward
  129. map kitty_mod+, move_tab_backward
  130. # You can also create shortcuts to go to specific tabs, with 1 being the first tab
  131. # map ctrl+alt+1 goto_tab 1
  132. # map ctrl+alt+2 goto_tab 2
  133. # Layout management
  134. # You can create shortcuts to switch to specific layouts
  135. # map ctrl+alt+1 goto_layout tall
  136. # map ctrl+alt+2 goto_layout stack
  137. # Font sizes
  138. # all | current
  139. map kitty_mod+equal change_font_size all +2.0
  140. map kitty_mod+minus change_font_size all -2.0
  141. map kitty_mod+backspace change_font_size all 0
  142. map kitty_mod+alt+equal change_font_size current +2.0
  143. map kitty_mod+alt+minus change_font_size current -2.0
  144. map kitty_mod+alt+backspace change_font_size current 0
  145. # Kittens
  146. # Open a currently visible URL using the keyboard. The program used to open the
  147. # URL is specified in open_url_with.
  148. map kitty_mod+e kitten hints
  149. # Select a path/filename and insert it into the terminal.
  150. map kitty_mod+p>f kitten hints --type=path --program=-
  151. # Select a path/filename and open it with the default open program.
  152. map kitty_mod+p>shift+f kitten hints --type=path
  153. # Select a line of text and insert it into the terminal.
  154. map kitty_mod+p>l kitten hints --type=line --program=-
  155. # Select words and insert into terminal.
  156. map kitty_mod+p>w kitten hints --type=word --program=-
  157. # Open selected file at the selected line
  158. map kitty_mod+p>n kitten hints --type=linenum --linenum-action=tab kak -e 'exec {line}g' {path}
  159. map f1 create_marker
  160. map shift+f1 remove_marker
  161. map kitty_mod+n scroll_to_mark next
  162. map kitty_mod+u input_unicode_character
  163. # Open the kitty shell in a new window/tab/overlay/os_window to control kitty using commands.
  164. map kitty_mod+escape kitty_shell overlay
  165. map kitty_mod+a>m set_background_opacity +0.1
  166. map kitty_mod+a>l set_background_opacity -0.1
  167. map kitty_mod+a>1 set_background_opacity 1
  168. map kitty_mod+a>d set_background_opacity default
  169. # Launching and data passing
  170. # --title, --tab-title
  171. # --type background/clipboard/os-window/overlay/primary/tab/window
  172. # --keep-focus
  173. # --cwd path/current
  174. # --env key=value
  175. # --copy-colors, --copy-cmdline, --copy-env
  176. # --location first, last, neighbor
  177. # --allow-remote-control
  178. # --stdin-source @alternate/@alternate_scrollback/@screen/@screen_scrollback/@selection/none
  179. # --stdin-add-formatting, --stdin-add-line-wrap-markers
  180. # KITTY_PIPE_DATA={scrolled_by}:{cursor_x},{cursor_y}:{lines},{columns}
  181. map ctrl+alt+enter launch --type=os-window --cwd=current
  182. map kitty_mod+f1 launch --type=overlay --stdin-source=@alternate_scrollback --stdin-add-formatting kakpager
  183. map kitty_mod+g launch --type=overlay --cwd=current tig
  184. # Sending arbitrary text on shortcut key presses
  185. # You can tell kitty to send arbitrary (UTF-8) encoded text to
  186. # the client program when pressing specified shortcut keys. For example:
  187. # map ctrl+alt+a send_text all Special text
  188. # This will send "Special text" when you press the Ctrl+Alt+a key combination.
  189. # The text to be sent is a python string literal so you can use escapes like
  190. # \x1b to send control codes or \u21fb to send unicode characters (or you can
  191. # just input the unicode characters directly as UTF-8 text). The first argument
  192. # to send_text is the keyboard modes in which to activate the shortcut. The possible
  193. # values are normal or application or kitty or a comma separated combination of them.
  194. # The special keyword all means all modes. The modes normal and application refer to
  195. # the DECCKM cursor key mode for terminals, and kitty refers to the special kitty
  196. # extended keyboard protocol. Another example, that outputs a word and then moves the cursor
  197. # to the start of the line (same as pressing the Home key):
  198. # map ctrl+alt+a send_text normal Word\x1b[H
  199. # map ctrl+alt+a send_text application Word\x1bOH
  200. 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