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:
50
.config/kitty/kitty.conf
Normal file
50
.config/kitty/kitty.conf
Normal 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
|
||||
@@ -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
|
||||
|
||||
3
setup.sh
3
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..."
|
||||
|
||||
Reference in New Issue
Block a user