diff options
Diffstat (limited to '.config/kitty/kitty.conf')
-rw-r--r-- | .config/kitty/kitty.conf | 162 |
1 files changed, 23 insertions, 139 deletions
diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 8066bdb..0ab2d35 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf | |||
@@ -1,4 +1,4 @@ | |||
1 | # vim:fileencoding=utf-8:ft=conf:foldmethod=marker | 1 | # vim:fileencoding=utf-8:ft=kitty:foldmethod=marker |
2 | 2 | ||
3 | #: Fonts {{{ --> Ligature Support | 3 | #: Fonts {{{ --> Ligature Support |
4 | 4 | ||
@@ -38,16 +38,14 @@ wheel_scroll_multiplier 5.0 | |||
38 | 38 | ||
39 | url_color #2aa889 | 39 | url_color #2aa889 |
40 | url_style curly | 40 | url_style curly |
41 | open_url_modifiers ctrl+shift | ||
42 | open_url_with brave | 41 | open_url_with brave |
42 | mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_click_url | ||
43 | 43 | ||
44 | #: }}} | 44 | #: }}} |
45 | 45 | ||
46 | #: Terminal bell {{{ | 46 | #: Terminal bell {{{ |
47 | |||
48 | enable_audio_bell no | 47 | enable_audio_bell no |
49 | visual_bell_duration 0.0 | 48 | visual_bell_duration 0.0 |
50 | |||
51 | #: }}} | 49 | #: }}} |
52 | 50 | ||
53 | #: Window layout {{{ | 51 | #: Window layout {{{ |
@@ -80,28 +78,27 @@ inactive_tab_font_style normal | |||
80 | 78 | ||
81 | # moonfly | 79 | # moonfly |
82 | # https://github.com/bluz71/vim-moonfly-colors/blob/master/terminal_themes/kitty-theme.conf | 80 | # https://github.com/bluz71/vim-moonfly-colors/blob/master/terminal_themes/kitty-theme.conf |
83 | 81 | # background #080808 | |
84 | background #080808 | 82 | # foreground #b2b2b2 |
85 | foreground #b2b2b2 | 83 | # cursor #9e9e9e |
86 | cursor #9e9e9e | 84 | # color0 #373c40 |
87 | color0 #373c40 | 85 | # color1 #ff5454 |
88 | color1 #ff5454 | 86 | # color2 #8cc85f |
89 | color2 #8cc85f | 87 | # color3 #e3c78a |
90 | color3 #e3c78a | 88 | # color4 #80a0ff |
91 | color4 #80a0ff | 89 | # color5 #d183e8 |
92 | color5 #d183e8 | 90 | # color6 #7ee0ce |
93 | color6 #7ee0ce | 91 | # color7 #de935f |
94 | color7 #de935f | 92 | # color8 #f09479 |
95 | color8 #f09479 | 93 | # color9 #f74782 |
96 | color9 #f74782 | 94 | # color10 #42cf89 |
97 | color10 #42cf89 | 95 | # color11 #cfcfb0 |
98 | color11 #cfcfb0 | 96 | # color12 #78c2ff |
99 | color12 #78c2ff | 97 | # color13 #ae81ff |
100 | color13 #ae81ff | 98 | # color14 #85dc85 |
101 | color14 #85dc85 | 99 | # color15 #e2637f |
102 | color15 #e2637f | 100 | # selection_background #b2ceee |
103 | selection_background #b2ceee | 101 | # selection_foreground #080808 |
104 | selection_foreground #080808 | ||
105 | 102 | ||
106 | #: }}} | 103 | #: }}} |
107 | 104 | ||
@@ -111,59 +108,11 @@ editor nvim | |||
111 | 108 | ||
112 | #: Keyboard shortcuts {{{ | 109 | #: Keyboard shortcuts {{{ |
113 | 110 | ||
114 | #: Finally, you can use raw system key codes to map keys. To see the | ||
115 | #: system key code for a key, start kitty with the kitty --debug- | ||
116 | #: keyboard option. Then kitty will output some debug text for every | ||
117 | #: key event. In that text look for ``native_code`` the value of that | ||
118 | #: becomes the key name in the shortcut. For example: | ||
119 | |||
120 | #: .. code-block:: none | ||
121 | |||
122 | #: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a' | ||
123 | |||
124 | #: Here, the key name for the A key is 0x61 and you can use it with:: | ||
125 | |||
126 | #: map ctrl+0x61 something | ||
127 | |||
128 | #: to map ctrl+a to something. | ||
129 | |||
130 | #: You can use the special action no_op to unmap a keyboard shortcut | ||
131 | #: that is assigned in the default configuration. | ||
132 | |||
133 | #: You can combine multiple actions to be triggered by a single | ||
134 | #: shortcut, using the syntax below:: | ||
135 | |||
136 | #: map key combine <separator> action1 <separator> action2 <separator> action3 ... | ||
137 | |||
138 | #: For example:: | ||
139 | |||
140 | #: map kitty_mod+e combine : new_window : next_layout | ||
141 | |||
142 | #: this will create a new window and switch to the next available | ||
143 | #: layout | ||
144 | |||
145 | #: You can use multi-key shortcuts using the syntax shown below:: | ||
146 | |||
147 | #: map key1>key2>key3 action | ||
148 | |||
149 | #: For example:: | ||
150 | |||
151 | #: map ctrl+f>2 set_font_size 20 | ||
152 | |||
153 | kitty_mod ctrl+shift | 111 | kitty_mod ctrl+shift |
154 | 112 | ||
155 | map shift+enter send_text all \x1b[13;2u | 113 | map shift+enter send_text all \x1b[13;2u |
156 | map ctrl+enter send_text all \x1b[13;5u | 114 | map ctrl+enter send_text all \x1b[13;5u |
157 | 115 | ||
158 | #: The value of kitty_mod is used as the modifier for all default | ||
159 | #: shortcuts, you can change it in your kitty.conf to change the | ||
160 | #: modifiers for all the default shortcuts. | ||
161 | |||
162 | # clear_all_shortcuts no | ||
163 | |||
164 | #: You can have kitty remove all shortcut definition seen up to this | ||
165 | #: point. Useful, for instance, to remove the default shortcuts. | ||
166 | |||
167 | #: Clipboard {{{ | 116 | #: Clipboard {{{ |
168 | 117 | ||
169 | map kitty_mod+c copy_to_clipboard | 118 | map kitty_mod+c copy_to_clipboard |
@@ -188,69 +137,4 @@ map kitty_mod+h show_scrollback | |||
188 | 137 | ||
189 | #: }}} | 138 | #: }}} |
190 | 139 | ||
191 | #: Window management {{{ | ||
192 | |||
193 | # map kitty_mod+enter new_window | ||
194 | # map kitty_mod+n new_os_window | ||
195 | # map kitty_mod+w close_window | ||
196 | # map kitty_mod+] next_window | ||
197 | # map kitty_mod+[ previous_window | ||
198 | # map kitty_mod+f move_window_forward | ||
199 | # map kitty_mod+b move_window_backward | ||
200 | # map kitty_mod+` move_window_to_top | ||
201 | # map kitty_mod+r start_resizing_window | ||
202 | # map kitty_mod+1 first_window | ||
203 | # map kitty_mod+2 second_window | ||
204 | # map kitty_mod+3 third_window | ||
205 | # map kitty_mod+4 fourth_window | ||
206 | # map kitty_mod+5 fifth_window | ||
207 | # map kitty_mod+6 sixth_window | ||
208 | # map kitty_mod+7 seventh_window | ||
209 | # map kitty_mod+8 eighth_window | ||
210 | # map kitty_mod+9 ninth_window | ||
211 | # map kitty_mod+0 tenth_window | ||
212 | #: }}} | ||
213 | |||
214 | #: Tab management {{{ | ||
215 | |||
216 | # map kitty_mod+right next_tab | ||
217 | # map kitty_mod+left previous_tab | ||
218 | # map kitty_mod+t new_tab | ||
219 | # map kitty_mod+q close_tab | ||
220 | # map kitty_mod+. move_tab_forward | ||
221 | # map kitty_mod+, move_tab_backward | ||
222 | # map kitty_mod+alt+t set_tab_title | ||
223 | |||
224 | #: }}} | ||
225 | |||
226 | #: Layout management {{{ | ||
227 | |||
228 | # map kitty_mod+l next_layout | ||
229 | # map ctrl+alt+p last_used_layout | ||
230 | |||
231 | #: }}} | ||
232 | |||
233 | #: Font sizes {{{ | ||
234 | |||
235 | # map kitty_mod+equal change_font_size all +2.0 | ||
236 | # map kitty_mod+minus change_font_size all -2.0 | ||
237 | # map kitty_mod+backspace change_font_size all 0 | ||
238 | |||
239 | #: }}} | ||
240 | |||
241 | #: Miscellaneous {{{ | ||
242 | |||
243 | # map kitty_mod+f11 toggle_fullscreen | ||
244 | # map kitty_mod+u kitten unicode_input | ||
245 | # map kitty_mod+f2 edit_config_file | ||
246 | # map kitty_mod+escape kitty_shell window | ||
247 | |||
248 | # map kitty_mod+a>m set_background_opacity +0.1 | ||
249 | # map kitty_mod+a>l set_background_opacity -0.1 | ||
250 | # map kitty_mod+a>1 set_background_opacity 1 | ||
251 | # map kitty_mod+a>d set_background_opacity default | ||
252 | # map kitty_mod+delete clear_terminal reset active | ||
253 | |||
254 | #: }}} | ||
255 | |||
256 | # }}} | 140 | # }}} |