Files
dotfiles/kitty/kitty.conf
Thomas Naderer e715400806 Fix Yazi shell integration and enhance Kitty configuration
**Yazi Integration Fixes:**
- Fixed y() function in .zshrc to prevent shell exit when quitting Yazi
- Updated kitty-yazi.sh script to use AppleScript for proper tab creation
- Script now focuses existing Kitty window and creates new tab instead of new window

**Kitty Configuration Enhancements:**
- Added advanced font rendering with ligature support
- Improved cursor animations and visual effects
- Enhanced tab bar with powerline styling and fade effects
- Added background blur and better transparency handling
- Optimized performance settings (rendering delays, scrolling)
- Added comprehensive keyboard shortcuts for window/tab management
- Improved URL handling and text selection features
- Added notification system for long-running commands

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-28 23:38:13 +02:00

139 lines
3.2 KiB
Plaintext

# Font Configuration
font_family MesloGS NF
bold_font auto
italic_font auto
bold_italic_font auto
font_size 15
# Font rendering improvements
disable_ligatures never
font_features MesloGSNF +calt +liga
text_composition_strategy platform
undercurl_style thin-sparse
# Cursor Configuration
cursor_shape beam
cursor_beam_thickness 1.5
cursor_underline_thickness 2.0
cursor_blink_interval 0.5
cursor_stop_blinking_after 15.0
# Window Configuration
window_padding_width 8 12
placement_strategy center
window_border_width 1pt
draw_minimal_borders yes
window_margin_width 0
single_window_margin_width -1
resize_debounce_time 0.1
# Visual Polish
inactive_text_alpha 0.7
dim_opacity 0.75
# Font size (in pts)
# NOTE: Do not use odd values as these affect how kitty renders margin
# Background & Transparency
dynamic_background_opacity yes
background_opacity 0.85
background_blur 20
# macOS Specific
hide_window_decorations titlebar-only
macos_titlebar_color background
macos_option_as_alt yes
macos_quit_when_last_window_closed yes
# Audio
enable_audio_bell no
visual_bell_duration 0.0
# Enable remote control for new tab creation
allow_remote_control yes
# Keymap
include ./keymap.conf
macos_show_window_title_in none
# BEGIN_KITTY_THEME
# Monokai Classic
include current-theme.conf
# END_KITTY_THEME
# macos_titlebar_color background
#
# Tab Bar Configuration
tab_bar_style powerline
tab_powerline_style round
tab_bar_edge top
tab_bar_margin_width 2.0
tab_bar_margin_height 2.0 0.0
tab_bar_min_tabs 1
tab_switch_strategy previous
# Tab Colors (Gruvbox-inspired)
active_tab_foreground #282828
active_tab_background #fabd2f
active_tab_font_style bold
inactive_tab_foreground #a89984
inactive_tab_background #3c3836
inactive_tab_font_style normal
tab_bar_background #282828
tab_bar_margin_color #282828
# Tab Title Template
tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab} {index}: {title.split()[0] if title.rfind(title.split()[0]) < 30 else title.split()[0][:15] + '…'} "
active_tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab} {index}: {title.split()[0] if title.rfind(title.split()[0]) < 30 else title.split()[0][:15] + '…'} "
# Tab Separators
tab_separator " ┇ "
tab_fade 0.25 0.5 0.75 1
# Scrolling & Performance
scrollback_lines 10000
scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
scrollback_pager_history_size 2048
wheel_scroll_multiplier 3.0
touch_scroll_multiplier 1.0
# URL Handling
detect_urls yes
url_color #0087bd
url_style curly
open_url_with default
copy_on_select no
strip_trailing_spaces never
# Selection
rectangle_select_modifiers ctrl+alt
terminal_select_modifiers shift
select_by_word_characters @-./_~?&=%+#
# Advanced Features
allow_hyperlinks yes
shell_integration enabled
term xterm-kitty
# Performance
repaint_delay 10
input_delay 3
sync_to_monitor yes
# Mouse
mouse_hide_wait 3.0
default_pointer_shape beam
pointer_shape_when_grabbed arrow
pointer_shape_when_dragging hand
# Clipboard
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
clipboard_max_size 64
# Notifications
enable_notifications yes
notify_on_cmd_finish invisible 30.0