-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitty.conf
103 lines (92 loc) · 3.48 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
# @see https://sw.kovidgoyal.net/kitty/conf/
# Font
# font_family Hasklug Nerd Font
# font_size 18.0
# modify_font underline_position +1
# modify_font cell_width 100%
# modify_font cell_height 110%
font_family CaskaydiaCove NF SemiLight
font_size 18.0
modify_font baseline +0
modify_font underline_position +0
modify_font cell_width 100%
modify_font cell_height 120%
# Tab
tab_bar_min_tabs 2
tab_bar_edge bottom
tab_bar_style custom
tab_powerline_style slanted
tab_title_template " {' ' if (index % 2) == 0 else ' '}{fmt.bold}{sup.index}"
active_tab_title_template " {fmt.nobold}{sup.index}"
# Misc
shell_integration enabled
copy_on_select clipboard
strip_trailing_spaces smart
enabled_layouts splits,grid,stack
window_border_width 1
window_margin_width 0
window_padding_width 2 4
confirm_os_window_close 1
macos_option_as_alt yes
macos_colorspace displayp3
macos_titlebar_color dark
macos_show_window_title_in window
macos_quit_when_last_window_closed yes
# startup_session startup.conf
include everforest.conf
# scrollback viewer
scrollback_pager nvim -u $HOME/dotfiles/nvim/lua/kitty/init.lua -R -c 'lua require("kitty.pager")(INPUT_LINE_NUMBER, CURSOR_LINE, CURSOR_COLUMN)' -
map cmd+shift+slash show_scrollback
# Mouse Bindings
mouse_map cmd+left release grabbed,ungrabbed mouse_handle_click link
# Key Bindings
map cmd+left_bracket previous_window
map cmd+right_bracket next_window
map cmd+shift+w close_window_with_confirmation
map cmd+w close_tab
map cmd+d new_window_with_cwd
map cmd+shift+d launch --cwd=current --type=window --location=hsplit
map cmd+t new_tab_with_cwd
map cmd+n new_tab_with_cwd
map cmd+enter toggle_layout stack
map cmd+backslash focus_visible_window
map cmd+shift+backslash swap_with_window
map cmd+shift+. move_tab_forward
map cmd+shift+, move_tab_backward
map ctrl+shift+q noop
map ctrl+shift+w noop
map ctrl+shift+h noop
map ctrl+shift+u noop
map ctrl+cmd+space noop
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
# Sends <M-,>
# map cmd+comma resize_window wider 10
# Sends <M-.>
# map cmd+period resize_window narrower 10
# # Sends <M->>
# map cmd+shift+period set_background_opacity +0.025
# # Sends <M-<>
# map cmd+shift+comma set_background_opacity -0.025
# # Sends <M-'>
# map cmd+apostrophe set_background_opacity default
# # NOTE: If you want to bind other custom keys, try using xxd -psd in your terminal to get the hex codes.
# # Sends <M-">
# map cmd+shift+apostrophe send_text application \x1b\x22
# # Sends <M-;>
# map cmd+semicolon send_text application \x1b\x3b
# # Sends <M-:>
# map cmd+shift+semicolon send_text application \x1b\x3a
# # Sends <M-/>
# # Sends <M-?>
# map cmd+shift+slash send_text application \x1b\x3f
# # Sends <M-\>
# map cmd+backslash send_text application \x1b\x5c
# map cmd+shift+backslash send_text application \x1b\x7c