BEGIN_KITTY_THEME
Tokyo Night
include current-theme.conf
END_KITTY_THEME
############################################################
基础终端能力
############################################################
term xterm-kitty
设置终端类型,确保 truecolor / italic / undercurl 正常
enable_audio_bell no
关闭声音响铃
visual_bell_duration 0.0
关闭视觉闪烁提示
scrollback_lines 20000
滚动缓冲区行数(查看日志非常重要)
scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
用 less 查看历史输出并保留颜色
mouse_hide_wait 1.0
输入时自动隐藏鼠标
focus_follows_mouse no
鼠标悬停不自动切换焦点
背景设置
background_opacity 1 dynamic_background_opacity yes
启用远程控制(主题切换、Sessions必需)
allow_remote_control yes
############################################################
性能优化
############################################################
repaint_delay 10
屏幕重绘延迟
input_delay 3
键盘输入延迟(降低输入滞后)
sync_to_monitor yes
同步显示器刷新率
############################################################
字体设置(建议 Nerd Font)
############################################################
font_family JetBrainsMono Nerd Font bold_font auto italic_font auto bold_italic_font auto
font_size 16.0
根据屏幕 DPI 自行调整
disable_ligatures never
是否启用连字(always 表示关闭)
adjust_line_height 0 adjust_column_width 0
############################################################
光标
############################################################
cursor_shape beam
光标形状:block / beam / underline
cursor_blink_interval 0.5 cursor_stop_blinking_after 15.0
############################################################
窗口与 UI
############################################################
window_padding_width 8
内边距
confirm_os_window_close 0
关闭窗口不确认
tab_bar_edge buttom
标签栏位置
tab_bar_style fade
标签样式(需要 Nerd Font)
############################################################
分屏快捷键
############################################################
map cmd+h launch --location=hsplit
水平分屏
map cmd+d launch --location=vsplit
垂直分屏
map cmd+w close_window
关闭当前 pane
map cmd+shift+w close_tab
关闭当前 tab
map cmd+[ previous_window
切换到上一个 window
map cmd+] next_window
切换到下一个 window
############################################################
Tab 切换快捷键
############################################################
map cmd+shift+] next_tab
切换到下一个 tab
map cmd+shift+[ previous_tab
切换到上一个 tab
map cmd+1 goto_tab 1 map cmd+2 goto_tab 2 map cmd+3 goto_tab 3 map cmd+4 goto_tab 4 map cmd+5 goto_tab 5 map cmd+6 goto_tab 6 map cmd+7 goto_tab 7 map cmd+8 goto_tab 8 map cmd+9 goto_tab 9
直接跳转到指定序号的 tab
复制粘贴优化
copy_on_select yes strip_trailing_spaces smart
切换主题
map f5 set_colors ~/.config/kitty/kitty-themes/themes/Dracula.conf map f6 set_colors ~/.config/kitty/kitty-themes/themes/E-Ink-Dark.conf