From f0f70cddf0672365d30bbace5b9700ba12d7532b Mon Sep 17 00:00:00 2001 From: 1jamesthompson1 <1jamesthompson1@gmail.com> Date: Mon, 23 Mar 2026 09:40:25 +1300 Subject: [PATCH] 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 --- .config/kitty/kitty.conf | 50 ++++++++++++++++++++++++++++++++++++++++ README.md | 1 + setup.sh | 3 +++ 3 files changed, 54 insertions(+) create mode 100644 .config/kitty/kitty.conf diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf new file mode 100644 index 0000000..97cf3d0 --- /dev/null +++ b/.config/kitty/kitty.conf @@ -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 diff --git a/README.md b/README.md index 0e10394..273fe55 100644 --- a/README.md +++ b/README.md @@ -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 | | `.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 | ## Quick Install on a New Machine diff --git a/setup.sh b/setup.sh index 970aa7a..e505cc5 100644 --- a/setup.sh +++ b/setup.sh @@ -23,6 +23,9 @@ echo ">>> Installing bash, kitty, and vim..." sudo apt update 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) if [ ! -d "$HOME/.dotfiles" ]; then echo ">>> Cloning dotfiles repo..."