allow_remote_control yes
listen_on unix:/tmp/kitty
shell_integration enabled

# kitty-scrollback.nvim Kitten alias
action_alias kitty_scrollback_nvim kitten $HOME/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
# Browse scrollback buffer in nvim
map kitty_mod+h kitty_scrollback_nvim
# Browse output of the last shell command in nvim
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
# Show clicked command output in nvim
mouse_map ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output

# disable the stupid notification
confirm_os_window_close 0

# set shell to fish
shell fish

# hide_window_decorations yes
window_padding_width    10

background_opacity  0.75
background_blur     16

font_family Maple Mono NF CN
font_size 12

tab_bar_style       powerline
tab_powerline_style round
tab_title_template  {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}

map ctrl+up previous_window
map ctrl+down next_window

cursor_trail 1
cursor_shape beam

include Catppuccin-Mocha.conf

map ctrl+plus  change_font_size all +1
map ctrl+kp_add  change_font_size all +1

map ctrl+minus       change_font_size all -1
map ctrl+kp_subtract       change_font_size all -1

map ctrl+0 change_font_size all 0
map ctrl+kp_0 change_font_size all 0