From a6b2eadf93ae1c6eadcedb37756d38862a88aac2 Mon Sep 17 00:00:00 2001 From: Thomas Naderer Date: Mon, 7 Jul 2025 15:33:03 +0200 Subject: [PATCH] Updated Kitty for use with tmux --- kitty/keymap.conf | 4 ++++ kitty/kitty.conf | 47 +++++++++++++---------------------------------- 2 files changed, 17 insertions(+), 34 deletions(-) diff --git a/kitty/keymap.conf b/kitty/keymap.conf index eb95f1b..277a6ee 100644 --- a/kitty/keymap.conf +++ b/kitty/keymap.conf @@ -43,6 +43,7 @@ map cmd+0 change_font_size all 0 map ctrl+shift+a>m set_background_opacity +0.1 map ctrl+shift+a>l set_background_opacity -0.1 map ctrl+shift+a>1 set_background_opacity 1 +map ctrl+shift+a>9 set_background_opacity 0 map ctrl+shift+a>d set_background_opacity default # Advanced Features @@ -54,3 +55,6 @@ map ctrl+shift+f6 debug_config map ctrl+shift+s show_scrollback map ctrl+shift+g show_last_command_output +# German character mappings +map alt+s send_text all ß + diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 858385f..f8cc075 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -19,12 +19,12 @@ cursor_blink_interval 0.5 cursor_stop_blinking_after 15.0 # Window Configuration -window_padding_width 8 12 +window_padding_width 0 placement_strategy center -window_border_width 1pt +window_border_width 0 draw_minimal_borders yes window_margin_width 0 -single_window_margin_width -1 +# single_window_margin_width -1 resize_debounce_time 0.1 # Visual Polish @@ -37,13 +37,13 @@ dim_opacity 0.75 # Background & Transparency dynamic_background_opacity yes background_opacity 0.85 -background_blur 20 +background_blur 3 # macOS Specific -hide_window_decorations titlebar-only +hide_window_decorations yes macos_titlebar_color background macos_option_as_alt yes -macos_quit_when_last_window_closed yes +macos_window_resizable yes # Audio enable_audio_bell no @@ -65,33 +65,7 @@ include current-theme.conf # macos_titlebar_color background # # Tab Bar Configuration -tab_bar_style powerline -tab_powerline_style round -tab_bar_edge top -tab_bar_margin_width 2.0 -tab_bar_margin_height 2.0 0.0 -tab_bar_min_tabs 1 -tab_switch_strategy previous - -# Tab Colors (Gruvbox-inspired) -active_tab_foreground #282828 -active_tab_background #fabd2f -active_tab_font_style bold - -inactive_tab_foreground #a89984 -inactive_tab_background #3c3836 -inactive_tab_font_style normal - -tab_bar_background #282828 -tab_bar_margin_color #282828 - -# Tab Title Template -tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab} {index}: {title.split()[0] if title.rfind(title.split()[0]) < 30 else title.split()[0][:15] + '…'} " -active_tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab} {index}: {title.split()[0] if title.rfind(title.split()[0]) < 30 else title.split()[0][:15] + '…'} " - -# Tab Separators -tab_separator " ┇ " -tab_fade 0.25 0.5 0.75 1 +tab_bar_style hidden # Scrolling & Performance scrollback_lines 10000 @@ -116,7 +90,9 @@ select_by_word_characters @-./_~?&=%+# # Advanced Features allow_hyperlinks yes shell_integration enabled -term xterm-kitty +term xterm-256color +# Fixed backspace mapping +map backspace send_text all \x7f # Performance repaint_delay 10 @@ -136,3 +112,6 @@ clipboard_max_size 64 # Notifications enable_notifications yes notify_on_cmd_finish invisible 30.0 + +# Ask for confirmation on program close (Cmd+Q) but not on tab close +confirm_os_window_close 0