Last active
July 25, 2024 19:40
-
-
Save jahrmando/6671e834d0aa54b94e39fd2a0bc29abb to your computer and use it in GitHub Desktop.
My Kitty Terminal Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Fonts | |
# Family | |
font_family Hack Nerd Font Mono | |
bold_font Hack Nerd Font Mono Bold | |
italic_font Hack Nerd Font Mono Italic | |
bold_italic_font Hack Nerd Font Mono Bold Italic | |
# Font Size | |
font_size 13.0 | |
disable_ligatures never | |
## System customs | |
shell_integration disabled | |
term xterm-256color | |
# MacOS | |
macos_thicken_font 0.30 | |
macos_titlebar_color system | |
macos_option_as_alt no | |
# Layouts | |
# the modifier for all shortcuts | |
kitty_mode ctrl+shift | |
# Remove mappings | |
map ctrl+u no_op | |
map cmd+enter no_op | |
# scrolling | |
map ctrl+u scroll_page_up | |
map ctrl+d scroll_page_down | |
# tab management | |
map cmd+t new_tab | |
map cmd+w close_tab | |
map ctrl+a>, set_tab_title | |
# window management | |
map ctrl+a>x close_window | |
map ctrl+a>n launch --cwd=current | |
# Windows Splits | |
map ctrl+a>- launch --location=hsplit | |
map ctrl+a>¡ launch --location=vsplit | |
map ctrl+a>s launch --location=split | |
map ctrl+a>o layout_action rotate | |
# Move the active window in the indicated direction | |
map option+up move_window up | |
map option+left move_window left | |
map option+right move_window right | |
map option+down move_window down | |
# Resizing windows | |
map ctrl+a>left resize_window narrower 2 | |
map ctrl+a>right resize_window wider 2 | |
map ctrl+a>up resize_window taller 3 | |
map ctrl+a>down resize_window shorter 3 | |
# reset all windows in the tab to default sizes | |
map ctrl+a>enter resize_window reset | |
# Switch focus to the neighboring window in the indicated direction | |
map shift+left neighboring_window left | |
map shift+right neighboring_window right | |
map shift+up neighboring_window up | |
map shift+down neighboring_window down | |
# Other Keyboard Shortcuts | |
map cmd+shift+f toggle_fullscreen | |
map ctrl+a>e edit_config_file | |
map ctrl+a>r load_config_file | |
# Font | |
map cmd+plus change_font_size all +2.0 | |
map cmd+minus change_font_size all -2.0 | |
map cmd+0 change_font_size all 0 | |
### MOUSE | |
# | |
# hide mouse cursor after the specified number of seconds | |
mouse_hide_wait 3.0 | |
copy_on_select yes | |
map cmd+c copy_to_clipboard | |
map cmd+v paste_from_clipboard | |
# click the link under the mouse cursor | |
mouse_map cmd+left release grabbed,ungrabbed mouse_click_url | |
# right click to paste | |
mouse_map right press grabbed,ungrabbed no-op | |
mouse_map right click grabbed,ungrabbed paste_from_clipboard | |
# Extras | |
url_style curly | |
open_url_with default | |
detect_urls yes | |
allow_hyperlinks yes | |
bell_on_tab "🔔" | |
bell_border_color #ff5a00 | |
visual_bell_color none | |
window_alert_on_bell no | |
draw_minimal_borders yes | |
active_border_color #00ff00 | |
tab_bar_style powerline | |
tab_powerline_style angled | |
tab_bar_edge top | |
tab_title_template "{index}:{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:10]}" | |
active_tab_foreground #000 | |
active_tab_background #eee | |
active_tab_font_style bold-italic | |
inactive_tab_foreground #444 | |
inactive_tab_background #999 | |
inactive_tab_font_style normal | |
background_opacity 0.9 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Font requirements for MacOs
brew install font-hack-nerd-font
Instalation
cd ~/.config/
Cloning
git clone https://gist.github.com/[HASH VERSION].git kitty