~/snippets/kitty
Published on

Kitty

241 words2 min read

Kitty

Kitty config that I use in my current ends-4 hyprland config

# Font
font_family      JetBrains Mono Nerd Font
font_size 11.0

# Cursor
cursor_shape beam
cursor_trail 3
cursor_trail_decay 0.4 0.9

# No stupid close confirmation
confirm_os_window_close 0

# Use zsh shell (remove if not using ends-4)
shell zsh -c '[[ -s ~/.local/state/quickshell/user/generated/terminal/sequences.txt ]] && cat ~/.local/state/quickshell/user/generated/terminal/sequences.txt && clear; exec zsh;'

# Copy
map ctrl+c    copy_or_interrupt

# Search (remove if not using ends-4)
map ctrl+f   launch --location=hsplit --allow-remote-control kitty +kitten search.py @active-kitty-window-id
map kitty_mod+f   launch --location=hsplit --allow-remote-control kitty +kitten search.py @active-kitty-window-id

# Scroll & Zoom
map page_up    scroll_page_up
map page_down    scroll_page_down

map ctrl+plus  change_font_size all +1
map ctrl+equal  change_font_size all +1
map ctrl+kp_add  change_font_size all +1
map ctrl+minus       change_font_size all -1
map ctrl+underscore       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

background_opacity 0.5
hide_window_decorations yes