Skip to content

Instantly share code, notes, and snippets.

@suplo
Created May 16, 2025 17:24
Show Gist options
  • Save suplo/c15770b30d9a3542dceda4e494b4d7bc to your computer and use it in GitHub Desktop.
Save suplo/c15770b30d9a3542dceda4e494b4d7bc to your computer and use it in GitHub Desktop.
Started the kitty journey
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker:foldlevel=0
# To reload config manually: kitty @ load-config
#: Fonts {{{
#: Victor Mono is an excellent coding font with beautiful italics,
#: particularly useful for code syntax highlighting and comments
font_family Victor Mono Medium
bold_font Victor Mono Bold
italic_font Victor Mono Medium Italic
bold_italic_font Victor Mono Bold Italic
font_size 14.0
#: Custom font modifications
modify_font strikethrough_position 12px
modify_font underline_position 3
modify_font underline_thickness 150%
#: Nonicons provides development-related icons
symbol_map U+f101-U+f27d nonicons
#: }}}
#: Cursor customization {{{
#: The cursor shape can be one of (block, beam, underline)
cursor_shape block
#: Disabled cursor blinking for distraction-free experience
cursor_blink_interval 0
cursor_trail 0
#: }}}
#: Performance {{{
#: Optimize rendering performance
repaint_delay 10
input_delay 3
sync_to_monitor yes
#: }}}
#: Terminal bell {{{
#: Disable audio bell for quiet working environment
enable_audio_bell no
#: }}}
#: Window layout {{{
#: Configure window layouts and appearance
enabled_layouts Splits,Stack
#: Use minimal borders for a cleaner interface
draw_minimal_borders yes
#: Fade text in inactive windows for better focus
inactive_text_alpha 0.8
#: Hide window decorations for a cleaner look
hide_window_decorations titlebar-only
#: }}}
#: Tab bar {{{
#: Tab bar on top with improved styling
tab_bar_edge top
tab_bar_style powerline
tab_powerline_style angled
tab_title_template "{index}: {title.split('/')[-1]}"
#: Tab styling colors
active_tab_foreground #1a1b26
active_tab_background #7aa2f7
active_tab_font_style bold
inactive_tab_foreground #a9b1d6
inactive_tab_background #1f2335
inactive_tab_font_style normal
#: }}}
#: Color scheme {{{
#: Include theme file instead of hardcoding colors
include themes/OneDark.conf
#: Set semi-transparency with blur for a modern look
background_opacity 0.9
background_blur 25
#: }}}
#: Advanced {{{
#: Enable remote control for integration with other tools
allow_remote_control yes
listen_on unix:/tmp/kitty
#: Use a default session for startup configuration
startup_session default_session.kitty
#: Enable shell integration for enhanced terminal features
shell_integration enabled no-title
#: }}}
#: Keyboard shortcuts {{{
#: Kitty modifier key - using cmd for macOS style or ctrl+shift for cross-platform
kitty_mod ctrl+shift
#: Vim-Kitty Navigator - seamless navigation between vim and kitty splits
#: This requires the pass_keys.py kitten and vim plugin
map ctrl+j kitten pass_keys.py neighboring_window bottom ctrl+j
map ctrl+k kitten pass_keys.py neighboring_window top ctrl+k
map ctrl+h kitten pass_keys.py neighboring_window left ctrl+h
map ctrl+l kitten pass_keys.py neighboring_window right ctrl+l
#: Integrated search functionality
map kitty_mod+/ launch --location=hsplit --allow-remote-control kitty +kitten search.py @active-kitty-window-id
#: LazyGit integration - launch git UI in a split with automatic layout
map kitty_mod+g combine : launch --location=vsplit --cwd=current zsh -ci "lazygit" : goto_layout Stack
#: Clipboard operations
map kitty_mod+v paste_from_clipboard
map kitty_mod+c copy_to_clipboard
map alt+v paste_from_clipboard
#: Scrolling controls
map kitty_mod+k scroll_line_up
map kitty_mod+j scroll_line_down
map kitty_mod+u scroll_page_up
map kitty_mod+d scroll_page_down
#: Navigate between command prompts
map kitty_mod+p scroll_to_prompt -1
map kitty_mod+n scroll_to_prompt 1
#: Window management
map kitty_mod+enter new_window_with_cwd
map cmd+enter new_window_with_cwd
map kitty_mod+alt+j move_window_forward
map kitty_mod+alt+k move_window_backward
#: Create splits with current working directory
map kitty_mod+s launch --location=hsplit --cwd=current
map kitty_mod+a launch --location=vsplit --cwd=current
#: Window resizing shortcuts
map kitty_mod+o resize_window narrower
map kitty_mod+y resize_window wider
map kitty_mod+u resize_window taller
map kitty_mod+i resize_window shorter
#: Fine-grained font size adjustment (0.5 increments)
map kitty_mod+equal change_font_size all +0.5
map kitty_mod+minus change_font_size all -0.5
#: Tab management
map kitty_mod+] next_tab
map kitty_mod+[ previous_tab
map kitty_mod+t new_tab_with_cwd
map cmd+t launch --cwd current --env OPEN_PROJECT=1 --type tab
map kitty_mod+alt+t set_tab_title
#: Layout management
map kitty_mod+f next_layout
#: Fixed reload configuration - changed from the default key binding
#: to avoid conflicts with resizing windows
map kitty_mod+alt+r load_config_file
#: }}}
#: Theme changing {{{
#: Shortcuts to quickly switch between themes
map kitty_mod+F1 set_colors ~/.config/kitty/themes/OneDark.conf
map kitty_mod+F2 set_colors ~/.config/kitty/themes/Dracula.conf
map kitty_mod+F3 set_colors ~/.config/kitty/themes/gruvbox_dark.conf
map kitty_mod+F4 set_colors ~/.config/kitty/themes/ayu_mirage.conf
map kitty_mod+F5 set_colors ~/.config/kitty/themes/Monokai_Pro.conf
#: }}}
#: Include host specific conf {{{
#: A local Kitty configuration file for machine-specific settings
include kitty.local.conf
#: }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment