Add kitty.conf to dotfiles and set as default terminal

- Add .config/kitty/kitty.conf
- setup.sh now sets kitty as default terminal via update-alternatives
- README updated to include kitty.conf
This commit is contained in:
1jamesthompson1
2026-03-23 09:40:25 +13:00
parent 5d75b26c16
commit f0f70cddf0
3 changed files with 54 additions and 0 deletions

50
.config/kitty/kitty.conf Normal file
View File

@@ -0,0 +1,50 @@
# kitty config
# https://sw.kovidgoyal.net/kitty/conf/
# Basic settings
font_size 12.0
scrollback_lines 10000
# Bell
enable_audio_bell no
# Performance
repaint_delay 10
input_delay 3
sync_to_monitor yes
# Tab bar
tab_bar_edge top
tab_bar_style powerline
active_tab_font_style bold
inactive_tab_font_style normal
# vi-style scrollback
map ctrl+shift+p launch --stdin-source=@screen --stdin-add-formatting less -R
map ctrl+shift+h show_scrollback
# Copy/paste
map ctrl+shift+c copy_to_buffer primary clipboard
map ctrl+shift+v paste_from_clipboard
# Splits (tmux-style)
map ctrl+shift+enter new_window
map ctrl+shift+] launch --location=hsplit
map ctrl+shift+[ launch --location=vsplit
# Navigate splits
map ctrl+shift+h neighboring_window left
map ctrl+shift+l neighboring_window right
map ctrl+shift+k neighboring_window up
map ctrl+shift+j neighboring_window down
# Resize splits
map ctrl+shift+arrow_left resize_window narrower
map ctrl+shift+arrow_right resize_window wider
map ctrl+shift+arrow_up resize_window taller
map ctrl+shift+arrow_down resize_window shorter
map ctrl+shift+f show_scrollback
# Auto copy on select
copy_on_select yes

View File

@@ -8,6 +8,7 @@ My personal dotfiles for quick setup on new machines. Change once, update everyw
|------|-------------| |------|-------------|
| `.bashrc` | Bash configuration with custom prompt, aliases, lazy-loaded conda/nvm | | `.bashrc` | Bash configuration with custom prompt, aliases, lazy-loaded conda/nvm |
| `.vimrc` | Vim configuration with clipboard support, syntax highlighting, and sensible defaults | | `.vimrc` | Vim configuration with clipboard support, syntax highlighting, and sensible defaults |
| `.config/kitty/kitty.conf` | kitty terminal config with tmux-style splits |
| `setup.sh` | Bootstrap script for new Debian-like machines | | `setup.sh` | Bootstrap script for new Debian-like machines |
## Quick Install on a New Machine ## Quick Install on a New Machine

View File

@@ -23,6 +23,9 @@ echo ">>> Installing bash, kitty, and vim..."
sudo apt update sudo apt update
sudo apt install -y bash kitty vim-gtk3 git curl sudo apt install -y bash kitty vim-gtk3 git curl
echo ">>> Setting kitty as default terminal..."
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 20
# 2. Clone your dotfiles (bare repo style) # 2. Clone your dotfiles (bare repo style)
if [ ! -d "$HOME/.dotfiles" ]; then if [ ! -d "$HOME/.dotfiles" ]; then
echo ">>> Cloning dotfiles repo..." echo ">>> Cloning dotfiles repo..."