diff options
Diffstat (limited to '.config/kitty')
| -rw-r--r-- | .config/kitty/kitty.conf | 265 |
1 files changed, 265 insertions, 0 deletions
diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf new file mode 100644 index 0000000..8fb681f --- /dev/null +++ b/.config/kitty/kitty.conf | |||
| @@ -0,0 +1,265 @@ | |||
| 1 | # vim:fileencoding=utf-8:ft=conf:foldmethod=marker | ||
| 2 | |||
| 3 | #: Fonts {{{ --> Ligature Support | ||
| 4 | |||
| 5 | font_family Fira Code | ||
| 6 | bold_font Fira Code Bold | ||
| 7 | italic_font Fira Code Light | ||
| 8 | bold_italic_font Fira Code Retina | ||
| 9 | |||
| 10 | font_size 10.0 | ||
| 11 | |||
| 12 | adjust_line_height 0 | ||
| 13 | adjust_column_width 0 | ||
| 14 | |||
| 15 | box_drawing_scale 0.001, 1, 1.5, 2 | ||
| 16 | |||
| 17 | #: }}} | ||
| 18 | |||
| 19 | #: Cursor customization {{{ | ||
| 20 | |||
| 21 | cursor_shape block | ||
| 22 | cursor #FDE311 | ||
| 23 | cursor_text_color background | ||
| 24 | |||
| 25 | cursor_blink_interval 0 | ||
| 26 | |||
| 27 | #: }}} | ||
| 28 | |||
| 29 | #: Scrollback {{{ | ||
| 30 | |||
| 31 | scrollback_lines 2000 | ||
| 32 | wheel_scroll_multiplier 5.0 | ||
| 33 | |||
| 34 | #: }}} | ||
| 35 | |||
| 36 | #: Mouse {{{ | ||
| 37 | |||
| 38 | url_color #2aa889 | ||
| 39 | url_style curly | ||
| 40 | open_url_modifiers ctrl+shift | ||
| 41 | open_url_with firefox | ||
| 42 | |||
| 43 | #: }}} | ||
| 44 | |||
| 45 | #: Terminal bell {{{ | ||
| 46 | |||
| 47 | enable_audio_bell no | ||
| 48 | visual_bell_duration 0.0 | ||
| 49 | |||
| 50 | #: }}} | ||
| 51 | |||
| 52 | #: Window layout {{{ | ||
| 53 | |||
| 54 | remember_window_size no | ||
| 55 | initial_window_width 80c | ||
| 56 | initial_window_height 24c | ||
| 57 | |||
| 58 | window_padding_width 5.0 | ||
| 59 | |||
| 60 | #: }}} | ||
| 61 | |||
| 62 | #: Tab bar {{{ | ||
| 63 | |||
| 64 | tab_bar_edge bottom | ||
| 65 | tab_bar_style separator | ||
| 66 | tab_separator " ┇" | ||
| 67 | |||
| 68 | active_tab_foreground #d5c4a1 | ||
| 69 | active_tab_background #504945 | ||
| 70 | active_tab_font_style italic | ||
| 71 | inactive_tab_foreground #a89984 | ||
| 72 | inactive_tab_background #7c6f64 | ||
| 73 | inactive_tab_font_style normal | ||
| 74 | |||
| 75 | #: }}} | ||
| 76 | |||
| 77 | #: Color scheme {{{ | ||
| 78 | |||
| 79 | foreground #ebdbb2 | ||
| 80 | background #282828 | ||
| 81 | |||
| 82 | #: The foreground and background for text selected with the mouse | ||
| 83 | selection_foreground #fbf1c7 | ||
| 84 | selection_background #d65d0e | ||
| 85 | |||
| 86 | #: black | ||
| 87 | color0 #282828 | ||
| 88 | color8 #928374 | ||
| 89 | |||
| 90 | #: red | ||
| 91 | color1 #cc241d | ||
| 92 | color9 #fb4934 | ||
| 93 | |||
| 94 | #: green | ||
| 95 | color2 #97971a | ||
| 96 | color10 #b8bb26 | ||
| 97 | |||
| 98 | #: yellow | ||
| 99 | color3 #d79921 | ||
| 100 | color11 #fabd2f | ||
| 101 | |||
| 102 | #: blue | ||
| 103 | color4 #458588 | ||
| 104 | color12 #83a598 | ||
| 105 | |||
| 106 | #: purple | ||
| 107 | color5 #b16286 | ||
| 108 | color13 #d3869b | ||
| 109 | |||
| 110 | #: cyan | ||
| 111 | color6 #689d6a | ||
| 112 | color14 #8ec07c | ||
| 113 | |||
| 114 | #: white | ||
| 115 | color7 #a89984 | ||
| 116 | color15 #ebdbb2 | ||
| 117 | |||
| 118 | #: }}} | ||
| 119 | |||
| 120 | #: Advanced {{{ | ||
| 121 | editor nvim | ||
| 122 | #: }}} | ||
| 123 | |||
| 124 | #: Keyboard shortcuts {{{ | ||
| 125 | |||
| 126 | #: Finally, you can use raw system key codes to map keys. To see the | ||
| 127 | #: system key code for a key, start kitty with the kitty --debug- | ||
| 128 | #: keyboard option. Then kitty will output some debug text for every | ||
| 129 | #: key event. In that text look for ``native_code`` the value of that | ||
| 130 | #: becomes the key name in the shortcut. For example: | ||
| 131 | |||
| 132 | #: .. code-block:: none | ||
| 133 | |||
| 134 | #: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a' | ||
| 135 | |||
| 136 | #: Here, the key name for the A key is 0x61 and you can use it with:: | ||
| 137 | |||
| 138 | #: map ctrl+0x61 something | ||
| 139 | |||
| 140 | #: to map ctrl+a to something. | ||
| 141 | |||
| 142 | #: You can use the special action no_op to unmap a keyboard shortcut | ||
| 143 | #: that is assigned in the default configuration. | ||
| 144 | |||
| 145 | #: You can combine multiple actions to be triggered by a single | ||
| 146 | #: shortcut, using the syntax below:: | ||
| 147 | |||
| 148 | #: map key combine <separator> action1 <separator> action2 <separator> action3 ... | ||
| 149 | |||
| 150 | #: For example:: | ||
| 151 | |||
| 152 | #: map kitty_mod+e combine : new_window : next_layout | ||
| 153 | |||
| 154 | #: this will create a new window and switch to the next available | ||
| 155 | #: layout | ||
| 156 | |||
| 157 | #: You can use multi-key shortcuts using the syntax shown below:: | ||
| 158 | |||
| 159 | #: map key1>key2>key3 action | ||
| 160 | |||
| 161 | #: For example:: | ||
| 162 | |||
| 163 | #: map ctrl+f>2 set_font_size 20 | ||
| 164 | |||
| 165 | kitty_mod ctrl+shift | ||
| 166 | |||
| 167 | #: The value of kitty_mod is used as the modifier for all default | ||
| 168 | #: shortcuts, you can change it in your kitty.conf to change the | ||
| 169 | #: modifiers for all the default shortcuts. | ||
| 170 | |||
| 171 | # clear_all_shortcuts no | ||
| 172 | |||
| 173 | #: You can have kitty remove all shortcut definition seen up to this | ||
| 174 | #: point. Useful, for instance, to remove the default shortcuts. | ||
| 175 | |||
| 176 | #: Clipboard {{{ | ||
| 177 | |||
| 178 | map kitty_mod+c copy_to_clipboard | ||
| 179 | map kitty_mod+v paste_from_clipboard | ||
| 180 | map kitty_mod+s paste_from_selection | ||
| 181 | map shift+insert paste_from_selection | ||
| 182 | map kitty_mod+o pass_selection_to_program | ||
| 183 | |||
| 184 | #: }}} | ||
| 185 | |||
| 186 | #: Scrolling {{{ | ||
| 187 | |||
| 188 | map kitty_mod+up scroll_line_up | ||
| 189 | map kitty_mod+k scroll_line_up | ||
| 190 | map kitty_mod+down scroll_line_down | ||
| 191 | map kitty_mod+j scroll_line_down | ||
| 192 | map kitty_mod+page_up scroll_page_up | ||
| 193 | map kitty_mod+page_down scroll_page_down | ||
| 194 | map kitty_mod+home scroll_home | ||
| 195 | map kitty_mod+end scroll_end | ||
| 196 | map kitty_mod+h show_scrollback | ||
| 197 | |||
| 198 | #: }}} | ||
| 199 | |||
| 200 | #: Window management {{{ | ||
| 201 | |||
| 202 | # map kitty_mod+enter new_window | ||
| 203 | # map kitty_mod+n new_os_window | ||
| 204 | # map kitty_mod+w close_window | ||
| 205 | # map kitty_mod+] next_window | ||
| 206 | # map kitty_mod+[ previous_window | ||
| 207 | # map kitty_mod+f move_window_forward | ||
| 208 | # map kitty_mod+b move_window_backward | ||
| 209 | # map kitty_mod+` move_window_to_top | ||
| 210 | # map kitty_mod+r start_resizing_window | ||
| 211 | # map kitty_mod+1 first_window | ||
| 212 | # map kitty_mod+2 second_window | ||
| 213 | # map kitty_mod+3 third_window | ||
| 214 | # map kitty_mod+4 fourth_window | ||
| 215 | # map kitty_mod+5 fifth_window | ||
| 216 | # map kitty_mod+6 sixth_window | ||
| 217 | # map kitty_mod+7 seventh_window | ||
| 218 | # map kitty_mod+8 eighth_window | ||
| 219 | # map kitty_mod+9 ninth_window | ||
| 220 | # map kitty_mod+0 tenth_window | ||
| 221 | #: }}} | ||
| 222 | |||
| 223 | #: Tab management {{{ | ||
| 224 | |||
| 225 | # map kitty_mod+right next_tab | ||
| 226 | # map kitty_mod+left previous_tab | ||
| 227 | # map kitty_mod+t new_tab | ||
| 228 | # map kitty_mod+q close_tab | ||
| 229 | # map kitty_mod+. move_tab_forward | ||
| 230 | # map kitty_mod+, move_tab_backward | ||
| 231 | # map kitty_mod+alt+t set_tab_title | ||
| 232 | |||
| 233 | #: }}} | ||
| 234 | |||
| 235 | #: Layout management {{{ | ||
| 236 | |||
| 237 | # map kitty_mod+l next_layout | ||
| 238 | # map ctrl+alt+p last_used_layout | ||
| 239 | |||
| 240 | #: }}} | ||
| 241 | |||
| 242 | #: Font sizes {{{ | ||
| 243 | |||
| 244 | # map kitty_mod+equal change_font_size all +2.0 | ||
| 245 | # map kitty_mod+minus change_font_size all -2.0 | ||
| 246 | # map kitty_mod+backspace change_font_size all 0 | ||
| 247 | |||
| 248 | #: }}} | ||
| 249 | |||
| 250 | #: Miscellaneous {{{ | ||
| 251 | |||
| 252 | # map kitty_mod+f11 toggle_fullscreen | ||
| 253 | # map kitty_mod+u kitten unicode_input | ||
| 254 | # map kitty_mod+f2 edit_config_file | ||
| 255 | # map kitty_mod+escape kitty_shell window | ||
| 256 | |||
| 257 | # map kitty_mod+a>m set_background_opacity +0.1 | ||
| 258 | # map kitty_mod+a>l set_background_opacity -0.1 | ||
| 259 | # map kitty_mod+a>1 set_background_opacity 1 | ||
| 260 | # map kitty_mod+a>d set_background_opacity default | ||
| 261 | # map kitty_mod+delete clear_terminal reset active | ||
| 262 | |||
| 263 | #: }}} | ||
| 264 | |||
| 265 | # }}} | ||
