217 lines
9.8 KiB
Plaintext
217 lines
9.8 KiB
Plaintext
# ════════════════════════════════════════════════════════════
|
||
# Kitty — Nord theme, tabs, splits, image protocol
|
||
# ════════════════════════════════════════════════════════════
|
||
|
||
# ═══ Shell ═════════════════════════════════════════════════
|
||
shell /usr/bin/zsh -l
|
||
shell_integration enabled # prompts marks, OSC7, command timing
|
||
|
||
# ═══ Window ════════════════════════════════════════════════
|
||
hide_window_decorations yes
|
||
remember_window_size yes
|
||
background_opacity 0.90
|
||
window_padding_width 1 1
|
||
confirm_os_window_close 1 # спрашивать при закрытии если есть вкладки/окна
|
||
#allow_remote_control
|
||
#listen_on unix:/tmp/kitty
|
||
|
||
# ═══ Font ══════════════════════════════════════════════════
|
||
font_family FiraCode Nerd Font Mono
|
||
bold_font FiraCode Nerd Font Mono Bold
|
||
italic_font FiraCode Nerd Font Mono Italic
|
||
bold_italic_font FiraCode Nerd Font Mono Bold Italic
|
||
font_size 14.0
|
||
disable_ligatures never
|
||
|
||
# ═══ Cursor ════════════════════════════════════════════════
|
||
cursor_shape beam
|
||
cursor_beam_thickness 1.5
|
||
cursor_blink_interval 0.5
|
||
# 0 = мигать всегда
|
||
cursor_stop_blinking_after 0
|
||
|
||
# ═══ Scrollback ════════════════════════════════════════════
|
||
scrollback_lines 10000
|
||
wheel_scroll_multiplier 5.0
|
||
|
||
# ═══ Mouse & URLs ══════════════════════════════════════════
|
||
mouse_hide_wait 0.0
|
||
copy_on_select clipboard
|
||
select_by_word_characters @-./_~?&=%+#
|
||
detect_urls yes
|
||
url_style curly
|
||
url_color #88C0D0
|
||
open_url_with default
|
||
|
||
# ═══ Bell ══════════════════════════════════════════════════
|
||
enable_audio_bell no
|
||
visual_bell_duration 0.0
|
||
|
||
# ═══ Notifications ═════════════════════════════════════════
|
||
# Уведомление, если команда выполнялась дольше 10с и окно не в фокусе
|
||
notify_on_cmd_finish unfocused 10.0
|
||
|
||
# ═══ Remote Control ════════════════════════════════════════
|
||
allow_remote_control yes
|
||
listen_on unix:/tmp/kitty
|
||
|
||
# ═══ Layouts ═══════════════════════════════════════════════
|
||
# tall=вертикальное разделение, fat=горизонтальное, grid, stack=полноэкранный
|
||
enabled_layouts tall,fat,horizontal,vertical,grid,stack
|
||
|
||
# ═══ Tab Bar ═══════════════════════════════════════════════
|
||
tab_bar_edge top
|
||
tab_bar_style powerline
|
||
tab_powerline_style slanted
|
||
tab_bar_min_tabs 1
|
||
tab_title_template " {index}: {title} "
|
||
active_tab_font_style bold
|
||
inactive_tab_font_style normal
|
||
|
||
# Nord
|
||
active_tab_foreground #2E3440
|
||
active_tab_background #88C0D0
|
||
inactive_tab_foreground #8FBCBB
|
||
inactive_tab_background #3B4252
|
||
tab_bar_background #2E3440
|
||
|
||
# ═══ Nord Colors ═══════════════════════════════════════════
|
||
foreground #D8DEE9
|
||
background #2E3440
|
||
|
||
cursor #D8DEE9
|
||
cursor_text_color #2E3440
|
||
|
||
selection_foreground #D8DEE9
|
||
selection_background #434C5E
|
||
|
||
# normal
|
||
color0 #3B4252
|
||
color1 #BF616A
|
||
color2 #A3BE8C
|
||
color3 #EBCB8B
|
||
color4 #81A1C1
|
||
color5 #B48EAD
|
||
color6 #88C0D0
|
||
color7 #E5E9F0
|
||
|
||
# bright
|
||
color8 #4C566A
|
||
color9 #BF616A
|
||
color10 #A3BE8C
|
||
color11 #EBCB8B
|
||
color12 #81A1C1
|
||
color13 #B48EAD
|
||
color14 #8FBCBB
|
||
color15 #ECEFF4
|
||
|
||
# ═══ Keyboard Shortcuts ════════════════════════════════════
|
||
|
||
# Clipboard
|
||
map ctrl+shift+c copy_to_clipboard
|
||
map ctrl+shift+v paste_from_clipboard
|
||
map ctrl+shift+s paste_from_selection
|
||
|
||
# Font size
|
||
map ctrl+shift+equal change_font_size all +1.0
|
||
map ctrl+shift+minus change_font_size all -1.0
|
||
map ctrl+shift+0 change_font_size all 0
|
||
|
||
# Scroll
|
||
map ctrl+shift+up scroll_line_up
|
||
map ctrl+shift+down scroll_line_down
|
||
map ctrl+shift+page_up scroll_page_up
|
||
map ctrl+shift+page_down scroll_page_down
|
||
map ctrl+shift+home scroll_home
|
||
map ctrl+shift+end scroll_end
|
||
map ctrl+shift+h show_scrollback # открыть историю в pager
|
||
|
||
# ── Вкладки ─────────────────────────────────────────────────
|
||
map ctrl+shift+t new_tab_with_cwd
|
||
map ctrl+shift+w close_tab
|
||
map ctrl+shift+right next_tab
|
||
map ctrl+shift+left previous_tab
|
||
map ctrl+alt+t set_tab_title
|
||
map alt+right next_tab
|
||
map alt+left previous_tab
|
||
|
||
# Переход по номеру вкладки
|
||
map alt+1 goto_tab 1
|
||
map alt+2 goto_tab 2
|
||
map alt+3 goto_tab 3
|
||
map alt+4 goto_tab 4
|
||
map alt+5 goto_tab 5
|
||
map alt+6 goto_tab 6
|
||
map alt+7 goto_tab 7
|
||
map alt+8 goto_tab 8
|
||
map alt+9 goto_tab 9
|
||
|
||
# Перемещение вкладки
|
||
map ctrl+shift+period move_tab_forward
|
||
map ctrl+shift+comma move_tab_backward
|
||
|
||
# ── Сплиты (окна внутри вкладки) ────────────────────────────
|
||
map ctrl+shift+enter new_window_with_cwd
|
||
map ctrl+shift+q close_window
|
||
map ctrl+shift+] next_window
|
||
map ctrl+shift+[ previous_window
|
||
|
||
# Навигация между сплитами (vim-стиль)
|
||
map ctrl+alt+up neighboring_window up
|
||
map ctrl+alt+down neighboring_window down
|
||
map ctrl+alt+left neighboring_window left
|
||
map ctrl+alt+right neighboring_window right
|
||
|
||
# Resize mode (нажать r, двигать стрелками, выйти — q/esc)
|
||
map ctrl+shift+r start_resizing_window
|
||
|
||
# Смена layout
|
||
map ctrl+shift+l next_layout
|
||
|
||
# ── Новое окно ОС ────────────────────────────────────────────
|
||
map ctrl+shift+n new_os_window_with_cwd
|
||
|
||
# ── Hints (быстрый выбор из вывода) ─────────────────────────
|
||
map ctrl+shift+e kitten hints # открыть URL
|
||
map ctrl+shift+p kitten hints --type path --program @ # скопировать путь
|
||
map ctrl+shift+i kitten hints --type ip_address --program @ # скопировать IP
|
||
map ctrl+shift+y kitten hints --type word --program @ # скопировать слово
|
||
map ctrl+shift+z kitten hints --type linenum # перейти в файл:строка
|
||
|
||
# ── Misc ────────────────────────────────────────────────────
|
||
map ctrl+shift+f11 toggle_fullscreen
|
||
map ctrl+shift+f5 load_config_file # перечитать конфиг без перезапуска
|
||
map ctrl+shift+f6 debug_config
|
||
|
||
# ── Изображения ─────────────────────────────────────────────
|
||
# Просмотр: kitty +kitten icat <file>
|
||
# В ranger/lf kitty graphics protocol подхватывается автоматически
|
||
# Для Python: pip install matplotlib; matplotlib использует kitty backend
|
||
map ctrl+shift+d kitten show_key # отладка — показать код клавиши
|
||
|
||
# ── Русская раскладка (кириллические алиасы) ─────────────────
|
||
# Kitty привязывает шорткаты по keysym, а не по позиции клавиши.
|
||
# При русской раскладке нужны дубли для всех буквенных биндингов.
|
||
# Таблица соответствий: t=е, w=ц, h=р, r=к, e=у, p=з, i=ш, y=н,
|
||
# z=я, q=й, l=д, n=т, s=ы, d=в, [=х, ]=ъ, c=с, v=м, ,=б, .=ю
|
||
map ctrl+shift+с copy_to_clipboard
|
||
map ctrl+shift+м paste_from_clipboard
|
||
map ctrl+shift+ы paste_from_selection
|
||
map ctrl+shift+р show_scrollback
|
||
map ctrl+shift+е new_tab_with_cwd
|
||
map ctrl+shift+ц close_tab
|
||
map ctrl+shift+ю move_tab_forward
|
||
map ctrl+shift+б move_tab_backward
|
||
map ctrl+shift+й close_window
|
||
map ctrl+shift+ъ next_window
|
||
map ctrl+shift+х previous_window
|
||
map ctrl+shift+к start_resizing_window
|
||
map ctrl+shift+д next_layout
|
||
map ctrl+shift+т new_os_window_with_cwd
|
||
map ctrl+shift+у kitten hints
|
||
map ctrl+shift+з kitten hints --type path --program @
|
||
map ctrl+shift+ш kitten hints --type ip_address --program @
|
||
map ctrl+shift+н kitten hints --type word --program @
|
||
map ctrl+shift+я kitten hints --type linenum
|
||
map ctrl+shift+в kitten show_key
|