Skip to content

Instantly share code, notes, and snippets.

@pracplayopen
Last active October 30, 2025 11:38
Show Gist options
  • Save pracplayopen/08fb79493261f85545d78c303759f6f2 to your computer and use it in GitHub Desktop.
Save pracplayopen/08fb79493261f85545d78c303759f6f2 to your computer and use it in GitHub Desktop.
# ~/.config/kitty/kitty.conf
# --- LAYOUT ---
# Use the 'splits' layout for simple, predictable binary splitting like Tilix.
# Use the 'stack' layout to enable the zoom-pane toggle feature.
# The first layout listed ('splits') becomes the default.
enabled_layouts splits,stack
# --- FONT & APPEARANCE ---
# Hide the titlebar for maximum space. Drag with Ctrl+Shift+Mouse.
hide_window_decorations yes
# Set a font you like. For example:
# font_family Fira Code
#font_family Monospace # what tilix uses by default
font_family JetBrains Mono
font_size 10.0
# Add some padding around the windows.
window_padding_width 5
# make kitty somewhat transparent
background_opacity 0.95
# If you only want the background to be transparent (text still 100% solid),
dynamic_background_opacity yes
active_border_width 0 # active tile border thickness in pixels
inactive_border_width 0 # inactive tile border thickness in pixels
# Active tile border color
active_border_color gray
# Inactive tile border color
inactive_border_color black
# --- GENERAL BEHAVIOR ---
# Disable the title-reporting feature of shell integration to
# permanently fix the HISTCONTROL warning.
shell_integration no-title
# filter out all notifications
filter_notification all
# disable weird bell sound
enable_audio_bell no
# --- KEYBINDINGS ---
clear_all_shortcuts no
# 1. Split terminal left-right (add another terminal to the right)
# A 'vsplit' creates a vertical line.
map ctrl+alt+r launch --location=vsplit --cwd=current
# 2. Split terminal up-down (add another terminal below)
# An 'hsplit' creates a horizontal line.
map ctrl+alt+d launch --location=hsplit --cwd=current
# 3. Toggle pane zoom (take up entire window)
# This still works perfectly by toggling to the 'stack' layout.
map ctrl+shift+x toggle_layout stack
# 4. Toggle fullscreen
# Tilix: F11
map f11 toggle_fullscreen
# --- CURSOR CONFIGURATION ---
# Set the cursor shape to a block. Can also be 'beam' or 'underline'.
cursor_shape block
# Set the cursor shape for an unfocused window. Let's make it a block too.
cursor_shape_unfocused block
# Optional: Stop the cursor from blinking.
# Set to 0 to disable blinking, or a number in seconds (e.g., 0.5).
cursor_blink_interval 0
# The critical fix: Tell Kitty to ignore cursor shape commands from the shell.
# This prevents any system scripts (.bashrc, /etc/profile, etc.)
# from overriding the settings above.
shell_integration no-cursor
# --- MOUSE BEHAVIOR ---
# 1. Middle-click to paste from the selection (primary clipboard).
mouse_map middle press ungrabbed paste_from_primary
# 2. Right-click to paste from the main clipboard.
# This is your replacement for "Right-Click -> Paste".
mouse_map right press ungrabbed paste_from_clipboard
# 3. Ctrl+Right-click to copy the current selection to the main clipboard.
# This is your replacement for "Select -> Right-Click -> Copy".
mouse_map ctrl+right press ungrabbed copy_to_clipboard
# --- NAVIGATION BINDINGS (Highly Recommended) ---
# Move focus between split panes
map ctrl+alt+h neighboring_window left
map ctrl+alt-l neighboring_window right
map ctrl+alt-k neighboring_window up
map ctrl+alt-j neighboring_window down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment