mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
# Generated by Home Manager.
|
|
# See https://sw.kovidgoyal.net/kitty/conf.html
|
|
font_family Maple Mono NF CN
|
|
font_size 12
|
|
|
|
include current-theme.conf
|
|
|
|
# Shell integration is sourced and configured manually
|
|
shell_integration no-rc
|
|
|
|
active_tab_font_style bold
|
|
allow_remote_control socket-only
|
|
cursor_trail 1
|
|
cursor_trail_decay 0.1 0.4
|
|
cursor_trail_start_threshold 2
|
|
disable_ligatures never
|
|
enabled_layouts splits
|
|
listen_on unix:/tmp/kitty.sock
|
|
macos_option_as_alt yes
|
|
macos_quit_when_last_window_closed yes
|
|
shell zsh
|
|
tab_bar_align left
|
|
tab_bar_edge top
|
|
tab_bar_min_tabs 2
|
|
tab_bar_style powerline
|
|
tab_title_template {f'{title[:30]}…' if title.rindex(title[-1]) + 1 > 30 else (title.center(6) if (title.rindex(title[-1]) + 1) % 2 == 0 else title.center(5))}
|
|
|
|
action_alias kitty_scrollback_nvim kitten /home/js0ny/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
|
|
|
|
map alt+0 goto_tab -1
|
|
map alt+1 goto_tab 1
|
|
map alt+2 goto_tab 2
|
|
map alt+3 goto_tab 3
|
|
map alt+4 goto_tab 4
|
|
map alt+5 goto_tab 5
|
|
map alt+6 goto_tab 6
|
|
map alt+7 goto_tab 7
|
|
map alt+8 goto_tab 8
|
|
map alt+9 goto_tab 9
|
|
map alt+shift+- launch --location=hsplit
|
|
map alt+shift+\ launch --location=vsplit
|
|
map alt+shift+h move_window left
|
|
map alt+shift+j move_window down
|
|
map alt+shift+k move_window up
|
|
map alt+shift+l move_window right
|
|
map cmd+c copy_and_clear_or_interrupt
|
|
map ctrl+c copy_and_clear_or_interrupt
|
|
map ctrl+q>h move_window left
|
|
map ctrl+q>j move_window down
|
|
map ctrl+q>k move_window up
|
|
map ctrl+q>l move_window right
|
|
map ctrl+shift+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|
map ctrl+shift+h kitty_scrollback_nvim
|
|
|
|
|
|
env TERM_PROGRAM=kitty
|
|
|
|
mouse_map ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
|
|
|