shell fish

# Use fc-list to see font names.

# font_size       12
# font_family     Cascadia Code PL ExtraLight
# bold_font       Cascadia Code PL Bold
# italic_font     Cascadia Code PL ExtraLight Italic
# bold_italic_font Cascadia Code PL Bold Italic
# modify_font cell_height 2px

# font_size       11
# font_family     Space Mono
# bold_font       Space Mono Bold
# italic_font     Space Mono Italic
# bold_italic_font Space Mono Bold Italic
# modify_font cell_height 90%

font_size       11.5
font_family     Atkinson Hyperlegible Mono ExtraLight
bold_font       Atkinson Hyperlegible Mono Bold
italic_font     Atkinson Hyperlegible Mono Light Italic
bold_italic_font Atkinson Hyperlegible Mono Bold Italic

text_composition_strategy legacy
symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E6AA,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF,U+F0001-U+F1AF0 Symbols Nerd Font Mono

remember_window_size  no
initial_window_width  960
initial_window_height 640

enabled_layouts splits,stack

visual_window_select_characters rtshae

enable_audio_bell no
wayland_enable_ime no

notify_on_cmd_finish invisible 10.0

clipboard_control write-clipboard write-primary read-clipboard read-primary

# For kitty-scrollback.nvim
# -------------------------
allow_remote_control socket-only
listen_on unix:/tmp/kitty
shell_integration enabled

action_alias kitty_scrollback_nvim kitten /home/francis/.local/share/nvim/site/pack/core/opt/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py

# Browse scrollback buffer in nvim
map alt+e kitty_scrollback_nvim
# Browse output of the last shell command in nvim
map alt+shift+e kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
# -------------------------

cursor          #FD453A
cursor_text_color #000000
cursor_shape    block
cursor_shape_unfocused underline
cursor_blink_interval 0
cursor_underline_thickness 1.0

tab_title_max_length 18
tab_bar_style powerline
tab_powerline_style slanted
active_tab_title_template "{'✱ ' if layout_name == 'stack' else ''}{title}"

active_tab_font_style   italic
active_tab_foreground   #FD453A
active_tab_background   #161616
inactive_tab_background #202020
inactive_tab_foreground #707070

foreground #ffffff
background #161616
selection_foreground #000000
selection_background #fffacd

active_border_color #00AF87
inactive_border_color #222222
inactive_text_alpha 0.5

# black
color0  #282828
color8  #585858

# red
color1  #FD453A
color9  #ff5c5c

# green
color2  #00af87
color10 #00af87

# yellow
color3  #edb140
color11 #ffd75f

# blue
color4  #67a2fd
color12 #2C84FC

# magenta
color5  #b8c4f0
color13 #886efa

# cyan
color6  #4b76b8
color14 #9ecede

# white
color7  #eeeeee
color15 #ffc1a0

map alt+shift+c copy_to_clipboard
map alt+shift+p paste_from_clipboard
# map alt+shift+equal change_font_size all +1.0
# map alt+shift+minus change_font_size all -1.0
map alt+shift+backspace change_font_size all 0
map alt+shift+e open_url_with_hints
map alt+shift+o kitten hints --type path --program @
map alt+shift+f kitten hints --type word --program @
map alt+t new_tab_with_cwd
map alt+shift+t new_tab
map alt+] next_tab
map alt+[ previous_tab
map alt+, set_tab_title " "
map alt+\ launch --location=vsplit --cwd=current
map alt+- launch --location=hsplit --cwd=current
map alt+_ launch --location=hsplit --cwd=current
map alt+shift+\ launch --location=vsplit
map alt+shift+- launch --location=hsplit
map alt+shift+_ launch --location=hsplit
map alt+w focus_visible_window
map alt+shift+r start_resizing_window
map alt+m toggle_layout stack

mouse_map left click ungrabbed no-op
