Created
December 7, 2023 09:36
-
-
Save adragomir/b89353e227ac165f31a3131f271118a2 to your computer and use it in GitHub Desktop.
kitty
This file contains 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
env EDITOR=nvim | |
env GIT_EDITOR=nvim | |
env VISUAL=nvim | |
env LANG="en_US.UTF-8" | |
env LANGUAGE="en_US.UTF-8" | |
env LC_ALL="en_US.UTF-8" | |
env CLICOLOR=1 | |
env SSH_AUTH_SOCK=${HOME}/.ssh/.ssh-agent.sock | |
env LESS="-rX" | |
env PAGER=less | |
env INPUTRC=${HOME}/.inputrc | |
env GOPATH=${HOME}/.gocode | |
env GO111MODULE=on | |
env SOLARGRAPH_CACHE=${HOME}/.cache/solargraph | |
env MAVEN_HOME=${HOME}/.cache/m2 | |
env RUSTUP_HOME=${HOME}/.cache/rustup | |
env CARGO_HOME=${HOME}/.cache/cargo | |
env FNM_DIR=${HOME}/.cache/fnm | |
env npm_config_devdir=${HOME}/.cache/node-gyp | |
env BUNDLE_USER_HOME=${HOME}/.cache/bundle | |
env FRUM_DIR=${HOME}/.cache/frum | |
env XDG_CONFIG_HOME=${HOME}/.config/ | |
env XDG_CACHE_HOME=${HOME}/.cache/ | |
env XDG_DATA_HOME=${HOME}/.local/share/ | |
env JAVA_HOME=/usr/local/opt/openjdk@11/ | |
env CONDA_PREFIX=${HOME}/.conda | |
env HOMEBREW_PREFIX="/usr/local"; | |
env HOMEBREW_CELLAR="/usr/local/Cellar"; | |
env HOMEBREW_REPOSITORY="/usr/local/Homebrew"; | |
env HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications" | |
env HOMEBREW_NO_ENV_HINTS=1 | |
env PATH=${HOME}/.krew/bin:/usr/local/opt/bison/bin:${HOME}/bin:${HOME}/bin/$OS:${HOME}/.local/bin:${HOME}/.cache/cargo/bin:$GOPATH/bin:/usr/local/bin:/usr/local/sbin:${HOME}/.platformio/penv/bin:/opt/X11/bin:/usr/local/share/dotnet:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:${PATH} | |
disable_ligatures 1 | |
#font_family Inconsolata LGC Regular | |
#bold_font Inconsolata LGC Bold | |
#italic_font Inconsolata LGC Italic | |
#bold_italic_font Inconsolata LGC BoldItalic | |
#font_size 13.0 | |
font_family Consolas | |
bold_font Consolas Bold | |
italic_font Consolas Italic | |
bold_italic_font Consolas Bold Italic | |
#font_family Liberation Mono | |
#bold_font Liberation Mono Bold | |
#italic_font Liberation Mono Italic | |
#bold_italic_font Liberation Mono Bold Italic | |
font_size 12.0 | |
#font_family Hasklig | |
#bold_font Hasklig Bold | |
#italic_font Hasklig Italic | |
#bold_italic_font Hasklig Bold Italic | |
#font_size 13.0 | |
#font_family Victor Mono | |
#bold_font Victor Mono Bold | |
#italic_font Victor Mono Italic | |
#bold_italic_font Victor Mono Bold Italic | |
#font_size 13.0 | |
adjust_line_height 0 | |
adjust_column_width 0 | |
box_drawing_scale 0.001, 1, 1.5, 2 | |
hide_window_decorations titlebar-only | |
# colors | |
cursor #ffb473 | |
cursor_text_color #ffffff | |
cursor_shape block | |
cursor_blink_interval 0 | |
foreground #c7c7c7 | |
background #000000 | |
selection_foreground #f4f4f4 | |
selection_background #454d95 | |
# black | |
# red | |
# green | |
# yellow | |
# blue | |
# magenta / purple | |
# cyan | |
# white | |
color0 #616161 | |
color1 #ff8272 | |
color2 #b4fa72 | |
color3 #fefdc2 | |
color4 #a5d5fe | |
color5 #ff8ffd | |
color6 #d0d1fe | |
color7 #f1f1f1 | |
color8 #8e8e8e | |
color9 #ffc4bd | |
color10 #d6fcb9 | |
color11 #fefdd5 | |
color12 #c1e3fe | |
color13 #ffb1fe | |
color14 #e5e6fe | |
color15 #feffff | |
editor nvim | |
shell_integration no-cursor no-title | |
scrollback_lines 10000 | |
scrollback_page_history_size 2 | |
# scrollback_pager ~/.config/kitty/pager 'INPUT_LINE_NUMBER' 'CURSOR_LINE' 'CURSOR_COLUMN' | |
# scrollback_pager /usr/local/bin/bash -c "exec /usr/local/bin/nvim 63<&0 0</dev/null -u NONE -c 'map <silent> q :qa!<CR>' -c 'set shell=bash scrollback=100000 termguicolors laststatus=0 clipboard+=unnamedplus' -c 'autocmd TermEnter * stopinsert' -c 'autocmd TermClose * call cursor(max([0,INPUT_LINE_NUMBER-1])+CURSOR_LINE, CURSOR_COLUMN)' -c 'terminal sed </dev/fd/63 -e \"s/'$'\x1b'']8;;file:[^\]*[\]//g\" && sleep 0.01 && printf \"'$'\x1b'']2;\"'" | |
macos_option_as_alt yes | |
macos_thicken_font 0 | |
macos_show_window_title_in none | |
enable_audio_bell no | |
visual_bell_duration 0 | |
window_alert_on_bell no | |
bell_on_tab no | |
command_on_bell none | |
tab_bar_edge top | |
tab_bar_style slant | |
tab_title_template "{index}:{layout_name}" | |
active_tab_title_template "{index}:{layout_name}" | |
term xterm-kitty | |
allow_remote_control yes | |
clipboard_control write-clipboard read-clipboard write-primary read-primary no-append | |
enabled_layouts splits,stack | |
show_hyperlink_targets yes | |
clear_all_shortcuts yes | |
map cmd+c copy_to_clipboard | |
map cmd+v paste_from_clipboard | |
map cmd+shift+right_bracket next_tab | |
map cmd+shift+left_bracket previous_tab | |
map cmd+t new_tab | |
map cmd+w close_tab | |
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 | |
map cmd+0 goto_tab 10 | |
map cmd+shift+equal change_font_size all +1.0 | |
map cmd+shift+minus change_font_size all -1.0 | |
map cmd+shift+right neighboring_window right | |
map cmd+shift+left neighboring_window left | |
map cmd+shift+up neighboring_window up | |
map cmd+shift+down neighboring_window down | |
map cmd+d launch --cwd=current --location=vsplit | |
map cmd+shift+d launch --cwd=current --location=hsplit | |
map cmd+shift+enter next_layout | |
map cmd+k clear_terminal scrollback active | |
map cmd+shift+u input_unicode_character | |
map ctrl+shift+escape kitty_shell | |
map cmd+shift+z scroll_to_prompt -1 # previous | |
map cmd+shift+x scroll_to_prompt 1 # next | |
map cmd+shift+s launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +g -R | |
#map cmd+shift+e launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +g -R | |
map cmd+shift+g show_last_command_output | |
#map cmd+shift+h launch --type overlay --stdin-source=@screen_scrollback ~/.config/kitty/pager | |
map cmd+f launch --stdin-source=@screen_scrollback --type=overlay nvim -c "set cb=unnamed" -u NONE -c "map <silent> q :qa!<CR>" -c "xmap / <esc>/\\%V" - | |
map cmd+alt+shift+e launch --stdin-source=@last_visited_cmd_output --type=overlay nvim - | |
map ctrl+apostrophe send_text all \x1bOj | |
# https://unix.stackexchange.com/questions/96884/using-ctrl0-9-to-cycle-between-windows-using-tmux | |
map ctrl+1 send_text all \x1b[27;5;49~ | |
map ctrl+2 send_text all \x1b[27;5;50~ | |
map ctrl+3 send_text all \x1b[27;5;51~ | |
map ctrl+4 send_text all \x1b[27;5;52~ | |
map ctrl+5 send_text all \x1b[27;5;53~ | |
map ctrl+6 send_text all \x1b[27;5;54~ | |
map ctrl+7 send_text all \x1b[27;5;55~ | |
map ctrl+8 send_text all \x1b[27;5;56~ | |
map ctrl+9 send_text all \x1b[27;5;57~ | |
map ctrl+0 send_text all \x1b[27;5;48~ | |
map ctrl+shift+f2 edit_config_file | |
map cmd+shift+r load_config_file | |
map cmd+r start_resizing_window | |
map cmd+q quit | |
watcher global-watcher.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment