-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkitty.conf
More file actions
117 lines (97 loc) · 4.28 KB
/
kitty.conf
File metadata and controls
117 lines (97 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# ============================================================================
# Kitty 终端配置文件
# ============================================================================
# ----------------------------------------------------------------------------
# 基础设置
# ----------------------------------------------------------------------------
include ./kitty-themes/00-Default.conf
shell_integration disabled
enabled_layouts horizontal
linux_display_server auto
confirm_os_window_close 0
enable_audio_bell no
# ----------------------------------------------------------------------------
# 字体配置
# ----------------------------------------------------------------------------
font_family family='Maple Mono NF CN' postscript_name=MapleMono-NF-CN-SemiBold
font_size 13.3
bold_font auto
italic_font auto
bold_italic_font family='Maple Mono NF CN' style='SemiBold Italic'
# ----------------------------------------------------------------------------
# 窗口外观
# ----------------------------------------------------------------------------
background_opacity 0.73
window_padding_width 20
# ----------------------------------------------------------------------------
# 光标配置
# ----------------------------------------------------------------------------
cursor #E8F4FF
cursor_text_color #000A1A
cursor_shape beam
cursor_beam_thickness 2.8
cursor_blink_interval 0.6 ease-in-out
cursor_stop_blinking_after 0.0
cursor_shape_unfocused hollow
# 光标拖尾效果
cursor_trail 35
cursor_trail_decay 0.12 1.2
cursor_trail_start_threshold 1
cursor_trail_color #A8D8FF
# ----------------------------------------------------------------------------
# 剪贴板控制
# ----------------------------------------------------------------------------
clipboard_control write-clipboard read-clipboard
# ----------------------------------------------------------------------------
# 鼠标配置
# ----------------------------------------------------------------------------
mouse_map left click ungrabbed mouse_handle_click selection link prompt
# ----------------------------------------------------------------------------
# 滚动缓冲区
# ----------------------------------------------------------------------------
scrollback_lines 2000
wheel_scroll_min_lines 1
# ----------------------------------------------------------------------------
# 快捷键映射 - 窗口管理
# ----------------------------------------------------------------------------
# 聚焦窗口用 ctrl+shift+[ 和ctrl+shift+]
map ctrl+shift+enter launch --cwd=current
map ctrl+shift+w close_window
map ctrl+shift+n new_os_window
map alt+up previous_window
map alt+down next_window
map ctrl+alt+n move_window_forward
map ctrl+alt+f move_window_backward
map ctrl+alt+t move_window_to_top
# ----------------------------------------------------------------------------
# 快捷键映射 - 标签页管理
# ----------------------------------------------------------------------------
# ctrl+shift+right是next_tab, ctrl+shift+left是previous_tab
map ctrl+shift+t new_tab_with_cwd
map ctrl+w close_tab
map alt+1 goto_tab 1
map alt+2 goto_tab 2
map alt+3 goto_tab 3
map alt+4 goto_tab 4
map alt+5 goto_tab 5
map alt+6 goto_tab 6
map alt+7 goto_tab 7
map alt+8 goto_tab 8
map alt+9 goto_tab 9
map alt+0 goto_tab 10
# ----------------------------------------------------------------------------
# 快捷键映射 - 复制粘贴
# ----------------------------------------------------------------------------
map ctrl+c copy_or_interrupt
map ctrl+v paste_from_clipboard
map ctrl+shift+c copy_from_selection
map ctrl+shift+v paste_from_selection
# ----------------------------------------------------------------------------
# 快捷键映射 - 滚动控制
# ----------------------------------------------------------------------------
map shift+up scroll_line_up
map shift+down scroll_line_down
map ctrl+up scroll_home
map ctrl+down scroll_end
map ctrl+shift+up scroll_to_prompt -1
map ctrl+shift+down scroll_to_prompt 1