dotfiles/kitty/kitty.conf
2024-05-11 22:30:44 +02:00

55 lines
1.8 KiB
Text

font_family FiraCode NerdFont
tab_bar_style powerline
font_size 12.0
tab_bar_min_tabs 1
tab_powerline_style slanted
map ctrl+g kitten hints --type=linenum --linenum-action=background sh -c "nvim_remote +{line} {path}"
tab_bar_edge top
include ./theme.conf
map f1 new_tab
map f2 new_tab_with_cwd
map ctrl+shift+w no_op
map alt+>, no_op
map alt+< no_op
allow_remote_control yes
listen_on unix:@mykitty
enabled_layouts splits
map f3 new_tab_with_cwd
# Create a new window splitting the space used by the existing one so that
# the two windows are placed one above the other
map f5 launch --location=hsplit --cwd=current
# Create a new window splitting the space used by the existing one so that
# the two windows are placed side by side
map f6 launch --location=vsplit --cwd=current
# Create a new window splitting the space used by the existing one so that
# the two windows are placed side by side if the existing window is wide or
# one above the other if the existing window is tall.
map f4 launch --location=split --cwd=current
# Rotate the current split, changing its split axis from vertical to
# horizontal or vice versa
map f7 layout_action rotate
# Move the active window in the indicated direction
map shift+up move_window up
map shift+left move_window left
map shift+right move_window right
map shift+down move_window down
# Move the active window to the indicated screen edge
map ctrl+shift+up layout_action move_to_screen_edge top
map ctrl+shift+left layout_action move_to_screen_edge left
map ctrl+shift+right layout_action move_to_screen_edge right
map ctrl+shift+down layout_action move_to_screen_edge bottom
# Switch focus to the neighboring window in the indicated direction
map ctrl+left neighboring_window left
map ctrl+right neighboring_window right
map ctrl+up neighboring_window up
map ctrl+down neighboring_window down