kitty.conf 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. #: Color scheme
  2. # Kitty theme
  3. # Add the theme at the top, any setting below the theme will be overriden
  4. # include ~/github/dotfiles-latest/kitty/themes/themes/ChallengerDeep.conf
  5. # include ~/github/dotfiles-latest/kitty/themes/themes/Catppuccin-Mocha.conf
  6. # include ~/.config/kitty/themes/themes/everforest_dark_medium.conf
  7. include ~/.config/kitty/themes/everforest_dark_medium.conf
  8. background_opacity 1.0
  9. dynamic_background_opacity no
  10. #: Fonts
  11. # font_family JetBrainsMono Nerd Font Mono
  12. # font_family FiraCode Nerd Font
  13. # font_family IosevkaCC
  14. # font_family Consolas NF
  15. # font_family Hack Nerd Font Mono
  16. font_family MesloLGS Nerd Font Mono
  17. bold_font auto
  18. italic_font auto
  19. bold_italic_font auto
  20. font_size 17.0
  21. # Kitty's font was more spaced compared to alacritty's, tried font variations
  22. # but it didn't change, so I went with this, it works fine
  23. # modify_font cell_width 95%
  24. # modify_font cell_height -5px # for IosevkaCC
  25. # adjust_line_height -8
  26. # adjust_column_width 0
  27. # adjust_baseline 0
  28. disable_ligatures always
  29. #: Cursor customization
  30. cursor_shape block
  31. # cursor_beam_thickness 1.5
  32. # cursor_underline_thickness 2.0
  33. cursor_shape_unfocused hollow
  34. shell_integration no-cursor
  35. cursor_blink_interval -1
  36. cursor_stop_blinking_after 15.0
  37. #: Scrollback
  38. scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS -M -i -j5 +INPUT_LINE_NUMBER
  39. scrollback_lines 5000
  40. #: Mouse
  41. url_style curly
  42. #: Window layout
  43. # Make kitty borderless
  44. # "yes" disables round corners and hides the title bar
  45. # "titlebar-only" leaves round corners but hides title bar
  46. hide_window_decorations yes
  47. # hide_window_decorations titlebar-only
  48. # window_logo_path window-logo.png
  49. # window_logo_alpha 0.15
  50. # enabled_layouts splits,stack
  51. #: The window padding (in pts) (blank area between the text and the
  52. #: window border). A single value sets all four sides. Two values set
  53. #: the vertical and horizontal sides. Three values set top, horizontal
  54. #: and bottom. Four values set top, right, bottom and left.
  55. window_padding_width 0 1 3 1
  56. #: Ask for confirmation when closing an OS window or a tab with at
  57. #: least this number of kitty windows in it by window manager (e.g.
  58. #: clicking the window close button or pressing the operating system
  59. #: shortcut to close windows) or by the close_tab action. A value of
  60. #: zero disables confirmation. This confirmation also applies to
  61. #: requests to quit the entire application (all OS windows, via the
  62. #: quit action). Negative values are converted to positive ones,
  63. #: however, with shell_integration enabled, using negative values
  64. #: means windows sitting at a shell prompt are not counted, only
  65. #: windows where some command is currently running. Note that if you
  66. #: want confirmation when closing individual windows, you can map the
  67. #: close_window_with_confirmation action.
  68. confirm_os_window_close 0
  69. #: Keyboard shortcuts
  70. kitty_mod ctrl+shift
  71. clear_all_shortcuts yes
  72. #: Clipboard
  73. map kitty_mod+c copy_to_clipboard
  74. map kitty_mod+v paste_from_clipboard
  75. #: Scrolling
  76. map kitty_mod+up scroll_line_up
  77. map kitty_mod+down scroll_line_down
  78. map kitty_mod+page_up scroll_page_up
  79. map kitty_mod+page_down scroll_page_down
  80. map kitty_mod+home scroll_home
  81. map kitty_mod+end scroll_end
  82. # map kitty_mod+s>h show_scrollback
  83. # map kitty_mod+s>n scroll_to_prompt 1
  84. # map kitty_mod+s>p scroll_to_prompt -1
  85. # map kitty_mod+s>l show_last_command_output
  86. # map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=window less +G -R
  87. # #: Window management
  88. map kitty_mod+enter new_window
  89. map kitty_mod+n new_os_window
  90. # map kitty_mod+w close_window
  91. map kitty_mod+o close_other_windows_in_tab
  92. map kitty_mod+z launch --location=hsplit
  93. map kitty_mod+x launch --location=vsplit
  94. map kitty_mod+k neighboring_window up
  95. map kitty_mod+j neighboring_window down
  96. map kitty_mod+h neighboring_window left
  97. map kitty_mod+l neighboring_window right
  98. # map kitty_mod+p nth_window -1
  99. # map kitty_mod+1 first_window
  100. # map kitty_mod+2 second_window
  101. # map kitty_mod+3 third_window
  102. # map kitty_mod+4 fourth_window
  103. # map kitty_mod+5 fifth_window
  104. # map kitty_mod+6 sixth_window
  105. # map kitty_mod+7 seventh_window
  106. # map kitty_mod+8 eighth_window
  107. # map kitty_mod+9 ninth_window
  108. # map kitty_mod+0 tenth_window
  109. # map kitty_mod+` move_window_to_top
  110. # map cmd+r start_resizing_window
  111. # map kitty_mod+- focus_visible_window
  112. # map cmd+s swap_with_window
  113. #: Tab management
  114. map control+t new_tab
  115. # map control+w close_tab
  116. map control+] next_tab
  117. map control+[ previous_tab
  118. map control+1 goto_tab 1
  119. map control+2 goto_tab 2
  120. map control+3 goto_tab 3
  121. map control+4 goto_tab 4
  122. map control+5 goto_tab 5
  123. map control+6 goto_tab 6
  124. map control+7 goto_tab 7
  125. map control+8 goto_tab 8
  126. map control+9 goto_tab 9
  127. map control+. move_tab_forward
  128. map control+, move_tab_backward
  129. map kitty_mod+t set_tab_title
  130. #: Layout management
  131. map kitty_mod+z toggle_layout stack
  132. #: Font sizes
  133. map control+equal change_font_size all +1.0
  134. map control+minus change_font_size all -1.0
  135. map control+0 change_font_size all 0
  136. # #: Select and act on visible text (the Hints kitten)
  137. #
  138. # map kitty_mod+i>u open_url_with_hints
  139. #
  140. # # Select a path/filename and open it with the default open program
  141. # map kitty_mod+i>o kitten hints --type path
  142. #
  143. # # Select a path/filename and insert it into the terminal
  144. # map kitty_mod+i>p kitten hints --type path --program -
  145. #
  146. # # Select a hyperlink (e.g., with ls --hyperlink=auto, we can open an item via
  147. # # the defined application)
  148. # map kitty_mod+i>l kitten hints --type hyperlink
  149. #
  150. # #:
  151. #
  152. # #: Miscellaneous
  153. #
  154. # map kitty_mod+m toggle_maximized
  155. # map kitty_mod+escape kitty_shell window
  156. #
  157. # map cmd+, edit_config_file
  158. # map ctrl+cmd+, load_config_file
  159. #
  160. # map ctrl+cmd+space kitten unicode_input
  161. #
  162. # map shift+enter send_text all \x1b[13;2u
  163. # map ctrl+enter send_text all \x1b[13;5u