-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitty.conf
154 lines (143 loc) · 5.31 KB
/
kitty.conf
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
cursor_shape underline
scrollback_lines 20000
scrollback_pager_history_size 0
copy_on_select no
strip_trailing_spaces smart
remember_window_size yes
background_opacity 1.0
dim_opacity 0.9
remember_window_size yes
tab_bar_edge top
# Clipboard {{{
map ctrl+shift+v paste_from_clipboard
map ctrl+shift+s paste_from_selection
map ctrl+shift+c copy_to_clipboard
map shift+insert paste_from_selection
map super+shift+v paste_from_clipboard
map super+shift+s paste_from_selection
map super+shift+c copy_to_clipboard
# You can also pass the contents of the current selection to any program using
# pass_selection_to_program. By default, the system's open program is used, but
# you can specify your own, for example:
# map ctrl+shift+o pass_selection_to_program firefox
map super+shift+o pass_selection_to_program
# }}}
# Scrolling {{{
map ctrl+shift+up scroll_line_up
map ctrl+shift+down scroll_line_down
map ctrl+shift+k scroll_line_up
map ctrl+shift+j scroll_line_down
map ctrl+shift+page_up scroll_page_up
map ctrl+shift+page_down scroll_page_down
map ctrl+shift+home scroll_home
map ctrl+shift+end scroll_end
map ctrl+shift+h show_scrollback
# }}}
# Search
map ctrl+f launch --type=overlay --stdin-source=@screen_scrollback fzf --no-sort --no-mouse --exact -i
map super+f launch --type=overlay --stdin-source=@screen_scrollback fzf --no-sort --no-mouse --exact -i
# Window management {{{
map ctrl+shift+enter new_window
map ctrl+shift+n new_os_window
map ctrl+shift+w close_window
map ctrl+shift+] next_window
map ctrl+shift+[ previous_window
map ctrl+shift+f move_window_forward
map ctrl+shift+b move_window_backward
map ctrl+shift+` move_window_to_top
map ctrl+shift+1 first_window
map ctrl+shift+2 second_window
map ctrl+shift+3 third_window
map ctrl+shift+4 fourth_window
map ctrl+shift+5 fifth_window
map ctrl+shift+6 sixth_window
map ctrl+shift+7 seventh_window
map ctrl+shift+8 eighth_window
map ctrl+shift+9 ninth_window
map ctrl+shift+0 tenth_window
# You can open a new window running an arbitrary program, for example:
# map ctrl+shift+y new_window mutt
#
# You can pass the current selection to the new program by using the @selection placeholder
# map ctrl+shift+y new_window less @selection
#
# You can even send the contents of the current screen + history buffer as stdin using
# the placeholders @text (which is the plain text) and @ansi (which includes text styling escape codes).
# For only the current screen, use @screen or @ansi_screen.
# For example, the following command opens the scrollback buffer in less in a new window.
# map ctrl+shift+y new_window @ansi less +G -R
#
# You can open a new window with the current working directory set to the
# working directory of the current window using
# map ctrl+alt+enter new_window_with_cwd
# }}}
# Tab management {{{
map ctrl+shift+right next_tab
map ctrl+shift+left previous_tab
map ctrl+shift+t new_tab
map ctrl+shift+q close_tab
map ctrl+shift+l next_layout
map ctrl+shift+. move_tab_forward
map ctrl+shift+, move_tab_backward
map super+shift+right next_tab
map super+shift+left previous_tab
map super+shift+t new_tab
map super+shift+q close_tab
map super+shift+l next_layout
map super+shift+. move_tab_forward
map super+shift+, move_tab_backward
# You can also create shortcuts to go to specific tabs, with 1 being the first tab
map ctrl+alt+1 goto_tab 1
map ctrl+alt+2 goto_tab 2
map ctrl+alt+3 goto_tab 3
map super+alt+1 goto_tab 1
map super+alt+2 goto_tab 2
map super+alt+3 goto_tab 3
# Move a word forwards and backwards
map super+left send_text all \x02
map super+right send_text all \x06
# Mac super as ctrl
map super+@ send_text all \x00
map super+a send_text all \x01
map super+b send_text all \x02
map super+c send_text all \x03
map super+d send_text all \x04
map super+e send_text all \x05
map super+f send_text all \x06
map super+g send_text all \x07
map super+h send_text all \x08
map super+i send_text all \x09
map super+j send_text all \x0A
map super+k send_text all \x0B
map super+l send_text all \x0C
map super+m send_text all \x0D
map super+n send_text all \x0E
map super+o send_text all \x0F
map super+p send_text all \x10
map super+q send_text all \x11
map super+r send_text all \x12
map super+s send_text all \x13
map super+t send_text all \x14
map super+u send_text all \x15
map super+v send_text all \x16
map super+w send_text all \x17
map super+x send_text all \x18
map super+y send_text all \x19
map super+z send_text all \x1A
map super+[ send_text all \x1B
map super+\ send_text all \x1C
map super+] send_text all \x1D
map super+^ send_text all \x1E
map super+_ send_text all \x1F
url_style curly
# Call `kitten themes` or `kitten themes --reload-in=all Tokyo Night` to change themes I recommend following themes for readability
# Dark: Hybrid, Urple, Lavandula, Ollie, Sakura Night, shadotheme, Shadorain, Shaman, Tokyo Night
# Light: Everforest Light Soft, Belafonte Day
# Tokyo Night and Storm
macos_titlebar_color #1a1b26
# macos_titlebar_color #24283b
# BEGIN_KITTY_THEME
# Urple
include current-theme.conf
# END_KITTY_THEME
# vim:ft=kitty