kitty.conf 5.6 KB

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