Skip to content

Instantly share code, notes, and snippets.

@vinhnx
Last active April 1, 2024 05:10
Show Gist options
  • Save vinhnx/e8915e966af1b10b659e2e8304c69bbe to your computer and use it in GitHub Desktop.
Save vinhnx/e8915e966af1b10b659e2e8304c69bbe to your computer and use it in GitHub Desktop.

Revisions

  1. vinhnx revised this gist Apr 1, 2024. 1 changed file with 16 additions and 13 deletions.
    29 changes: 16 additions & 13 deletions kitty.conf
    Original file line number Diff line number Diff line change
    @@ -5,19 +5,17 @@ include ./theme.conf

    # ===== Config =====

    font_family CaskaydiaCove Nerd Font
    font_size 16.0
    font_family Menlo
    font_size 15.0

    draw_minimal_borders yes
    inactive_text_alpha 0.7
    hide_window_decorations no

    editor nvim

    macos_titlebar_color background
    macos_thicken_font 0.75

    active_border_color none
    editor vim
    # macos_titlebar_color background
    macos_thicken_font 0.25
    # active_border_color none

    # default layout is vertical splits only
    enabled_layouts splits
    @@ -30,10 +28,10 @@ tab_bar_edge top
    tab_title_template "{fmt.fg.c2c2c2}{title}"
    active_tab_title_template "{fmt.fg._fff}{title}"
    tab_bar_style slant
    active_tab_foreground #fff
    active_tab_background #E34D65
    inactive_tab_foreground #c2c2c2
    inactive_tab_background #E34D65
    # active_tab_foreground #fff
    # active_tab_background #E34D65
    # inactive_tab_foreground #c2c2c2
    # inactive_tab_background #E34D65

    scrollback_lines 4000

    @@ -83,6 +81,11 @@ map cmd+c copy_to_clipboard
    map cmd+v paste_from_clipboard

    # padding
    window_padding_width 10
    window_padding_width 30

    shell_integration no-cursor

    # BEGIN_KITTY_THEME
    # Dimmed Monokai
    include current-theme.conf
    # END_KITTY_THEME
  2. vinhnx created this gist Mar 28, 2024.
    88 changes: 88 additions & 0 deletions kitty.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,88 @@
    # vim:fileencoding=utf-8:foldmethod=marker

    # Include theme
    include ./theme.conf

    # ===== Config =====

    font_family CaskaydiaCove Nerd Font
    font_size 16.0

    draw_minimal_borders yes
    inactive_text_alpha 0.7
    hide_window_decorations no

    editor nvim

    macos_titlebar_color background
    macos_thicken_font 0.75

    active_border_color none

    # default layout is vertical splits only
    enabled_layouts splits

    window_border_width 0px
    enable_audio_bell no

    # tab bar styles
    tab_bar_edge top
    tab_title_template "{fmt.fg.c2c2c2}{title}"
    active_tab_title_template "{fmt.fg._fff}{title}"
    tab_bar_style slant
    active_tab_foreground #fff
    active_tab_background #E34D65
    inactive_tab_foreground #c2c2c2
    inactive_tab_background #E34D65

    scrollback_lines 4000

    # ===== Mappings =====

    # open new split (window) with cmd+d retaining the cwd
    map cmd+w close_window
    map cmd+shif+n new_os_window
    map cmd+d launch --location=hsplit --cwd=current
    map cmd+shift+d launch --location=vsplit --cwd=current

    # open new tab with cmd+t
    map cmd+t new_tab

    # switch between next and previous splits
    map cmd+] next_window
    map cmd+[ previous_window

    # clear the terminal screen
    map cmd+k combine : clear_terminal scrollback active : send_text normal,application \x0c

    # jump to beginning and end of word
    map alt+left send_text all \x1b\x62
    map alt+right send_text all \x1b\x66

    # jump to beginning and end of line
    map cmd+left send_text all \x01
    map cmd+right send_text all \x05

    # Map cmd + <num> to corresponding tabs
    map cmd+1 goto_tab 1
    map cmd+2 goto_tab 2
    map cmd+3 goto_tab 3
    map cmd+4 goto_tab 4
    map cmd+5 goto_tab 5
    map cmd+6 goto_tab 6
    map cmd+7 goto_tab 7
    map cmd+8 goto_tab 8
    map cmd+9 goto_tab 9

    # changing font sizes
    map cmd+equal change_font_size all +2.0
    map cmd+minus change_font_size all -2.0
    map cmd+0 change_font_size all 0

    map cmd+c copy_to_clipboard
    map cmd+v paste_from_clipboard

    # padding
    window_padding_width 10

    shell_integration no-cursor