Kitty Terminal Configuration
Kitty is the default terminal emulator in Config-Sway, chosen for its GPU acceleration, extensive customization, and excellent font rendering.Configuration File
Location:~/.config/kitty/kitty.conf
This file is dynamically updated when switching themes. Each theme provides its own kitty/kitty.conf which replaces the active configuration.
Font Configuration
Primary Font
~/.config/kitty/kitty.conf
JetBrains Mono Nerd Font is required for proper icon rendering. Install it with:
Emoji Support
Appearance
Cursor Configuration
- Color: Purple (
#ad8ee6) - Shape: Vertical beam (like insert mode in editors)
- Thickness: 1.8 pixels
Transparency
URL Styling
- URLs are highlighted in blue
- Curly underline style distinguishes them from regular text
Ctrl and click any URL to open it in your browser.
Keybindings
Window Navigation
Window Navigation
Multiple Clipboards
Multiple Clipboards
Kitty supports multiple copy-paste buffers:Usage:
- Select text
- Press
F1to copy to buffer A (orF3for buffer B) - Press
F2to paste from buffer A (orF4for buffer B)
Window and Tab Management
Window and Tab Management
Create New Windows/Tabs
Ctrl + Shift + Enter- New window in current directoryCtrl + Shift + T- New tab in current directory
Rename Tab
Ctrl + Shift + N opens a prompt to rename the current tab.Layout Toggle
Ctrl + Shift + Z toggles between normal layout and stack layout (one window maximized).Tab Bar Styling
- Style: Powerline (angled separators)
- Active tab: Green background (
#98c379) - Inactive tabs: Red background (
#e06c75) - Text: Black for contrast
Tab colors are defined in the base config, but theme-specific color files may override them via
include colors.ini.Performance Settings
repaint_delay 10- Redraw every 10ms (smooth rendering)input_delay 3- Process input every 3ms (responsive typing)sync_to_monitor yes- Sync redraws to monitor refresh rate (eliminates tearing)
Mouse Behavior
- Hide mouse cursor after 3 seconds of inactivity
- Auto-detect URLs for Ctrl+Click opening
Shell Configuration
bash or fish if preferred.
Blur Effect (Compositor)
Color Scheme
Including Theme Colors
colors.ini file (if present) defines the 16 ANSI colors used by terminal applications. This file is theme-specific.
Manual Color Configuration
If not usingcolors.ini, define colors directly:
Colors 0-7 are normal variants, while colors 8-15 are bright variants (used with bold text or explicit codes).
Advanced Configuration
Font Ligatures
Font Ligatures
-> renders as →, != as ≠).Options:never- Always show ligaturesalways- Never show ligaturescursor- Disable ligatures where the cursor is
Audio Bell
Audio Bell
yes if you want audio alerts.Custom Window Padding
Custom Window Padding
Add padding inside terminal windows:Creates an 8-pixel padding around the text area.
Scrollback
Scrollback
Configure terminal history:
- Keeps 10,000 lines of scrollback history
- Uses
lessfor viewing long scrollback
Copy/Paste Behavior
Copy/Paste Behavior
copy_on_select yes- Auto-copy selected text to clipboardstrip_trailing_spaces smart- Remove trailing whitespace intelligently
Theme Integration
When you switch themes usingSuper + A, the theme switcher:
-
Backs up current config:
-
Copies theme config:
- Kitty auto-reloads the configuration (no restart needed)
Kitty Extensions
Kittens
Kitty includes utility scripts called “kittens”:Diff Files
Image Viewer
SSH Integration
Unicode Input
Troubleshooting
Icons/glyphs not rendering
Icons/glyphs not rendering
Solution: Install Nerd FontVerify it’s active:
Colors not updating after theme switch
Colors not updating after theme switch
Force config reload:
- Edit
~/.config/kitty/kitty.conf(add a space) - Save the file
- Kitty should reload automatically
Transparency not working
Transparency not working
Ensure your compositor supports transparency:Check Kitty config:
High CPU usage
High CPU usage
Reduce rendering frequency:Disable blur:
Clipboard not working
Clipboard not working
Verify clipboard manager is running:Install
wl-clipboard:Kitty Tips & Tricks
Open URLs from terminal output
Open URLs from terminal output
Keyboard:
Ctrl + Shift + E opens URL hints modeType the letter next to a URL to open it.Search terminal output
Search terminal output
Ctrl + Shift + H opens scrollback in pager with search enabled.In pager: Type / to search forward, ? to search backward.Split windows
Split windows
Add custom keybindings:
- Horizontal split:
Ctrl + Shift + S - Vertical split:
Ctrl + Shift + V
Custom color per session
Custom color per session
Override colors for specific sessions:Opens Kitty with black background and green text (Matrix style).
Remote file editing
Remote file editing
Edit remote files locally:File opens in your local editor, saves back to remote automatically.
Related Configuration
Sway Configuration
Terminal launcher keybinding (Super + Enter)
Theme System
How themes update Kitty colors automatically
Neovim Configuration
Editor configuration for terminal development
Additional Resources
- Kitty Documentation - Official docs
- Kitty Themes - Community color schemes
- Nerd Fonts - Patched fonts with icons