Skip to content

Instantly share code, notes, and snippets.

@olivierphi
Created September 4, 2023 08:39
Show Gist options
  • Save olivierphi/6752326ca685fc1318feecf14d6a0527 to your computer and use it in GitHub Desktop.
Save olivierphi/6752326ca685fc1318feecf14d6a0527 to your computer and use it in GitHub Desktop.
# ~/.config/kitty/kitty.conf
# theme setting: kitty +kitten themes --reload-in=all Catppuccin-Mocha
# https://github.com/catppuccin/kitty
font_family Roboto Mono
font_size 12.0
editor code
# enabled_layouts fat:bias=50;full_size=1
# map ctrl+z layout_action bias 98
enabled_layouts splits,stack
map f1 toggle_layout stack
# 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 --cwd=current --location=hsplit
# 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 --cwd=current --location=vsplit
map ctrl+left resize_window narrower
map ctrl+right resize_window wider
map ctrl+up resize_window taller
map ctrl+down resize_window shorter
# Tabs bar:
tab_bar_min_tabs 1
tab_bar_edge bottom
tab_bar_style powerline
tab_powerline_style slanted
tab_title_template {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment