add ghostty config

This commit is contained in:
Alexander Navarro 2025-01-28 12:27:22 -03:00
parent 6a7b800f8c
commit e67f758e35
3 changed files with 107 additions and 6 deletions

View file

@ -14,6 +14,7 @@ nerd_font = "JetBrainsMono"
[cli.files] [cli.files]
"config/bat" = "~/.config/bat" "config/bat" = "~/.config/bat"
"config/ghostty" = "~/.config/ghostty"
"config/kitty" = { target = "~/.config/kitty", type = "symbolic" } "config/kitty" = { target = "~/.config/kitty", type = "symbolic" }
"config/sesh" = "~/.config/sesh" "config/sesh" = "~/.config/sesh"
"config/tmux" = "~/.config/tmux" "config/tmux" = "~/.config/tmux"

92
config/ghostty/config Normal file
View file

@ -0,0 +1,92 @@
theme = catppuccin-macchiato
# Common
keybind = ctrl+space>o=write_selection_file:open
keybind = ctrl+space>shift+o=write_selection_file:paste
keybind = ctrl+space>alt+o=write_scrollback_file:open
keybind = ctrl+space>alt+shift+o=write_scrollback_file:paste
keybind = ctrl+comma=open_config
keybind = ctrl+space>shift+r=reload_config
keybind = ctrl+shift+c=copy_to_clipboard
keybind = ctrl+shift+i=inspector:toggle
keybind = ctrl+shift+v=paste_from_clipboard
keybind = shift+insert=paste_from_selection
# Navigation
keybind = alt+f4=close_window
keybind = ctrl+shift+w=close_surface
keybind = ctrl+space>shift+t=close_surface
keybind = ctrl+shift+n=new_window
keybind = ctrl+shift+q=quit
keybind = ctrl+space>shift+f=toggle_fullscreen
keybind = ctrl+alt+j=jump_to_prompt:1
keybind = ctrl+alt+k=jump_to_prompt:-1
keybind = ctrl+shift+a=select_all
keybind = shift+right=adjust_selection:right
keybind = shift+down=adjust_selection:down
keybind = shift+up=adjust_selection:up
keybind = shift+left=adjust_selection:left
keybind = shift+end=scroll_to_bottom
keybind = shift+home=scroll_to_top
keybind = shift+page_up=scroll_page_up
keybind = shift+page_down=scroll_page_down
# Config
keybind = ctrl+equal=increase_font_size:1
keybind = ctrl+minus=decrease_font_size:1
keybind = ctrl+plus=increase_font_size:1
keybind = ctrl+zero=reset_font_size
# Splits
keybind = ctrl+space>s=new_split:right
keybind = ctrl+space>v=new_split:down
keybind = ctrl+space>h=goto_split:left
keybind = ctrl+space>j=goto_split:bottom
keybind = ctrl+space>k=goto_split:top
keybind = ctrl+space>l=goto_split:right
keybind = ctrl+space>left=goto_split:left
keybind = ctrl+space>down=goto_split:bottom
keybind = ctrl+space>up=goto_split:top
keybind = ctrl+space>right=goto_split:right
keybind = ctrl+space>m=toggle_split_zoom
keybind = super+ctrl+left_bracket=goto_split:previous
keybind = super+ctrl+right_bracket=goto_split:next
keybind = super+ctrl+shift+right=resize_split:right,10
keybind = super+ctrl+shift+down=resize_split:down,10
keybind = super+ctrl+shift+up=resize_split:up,10
keybind = super+ctrl+shift+left=resize_split:left,10
keybind = ctrl+space>ctrl+zero=equalize_splits
# Tabs
keybind = ctrl+space>one=goto_tab:1
keybind = ctrl+space>two=goto_tab:2
keybind = ctrl+space>three=goto_tab:3
keybind = ctrl+space>four=goto_tab:4
keybind = ctrl+space>five=goto_tab:5
keybind = ctrl+space>six=goto_tab:6
keybind = ctrl+space>seven=goto_tab:7
keybind = ctrl+space>eight=goto_tab:8
keybind = ctrl+space>nine=last_tab
keybind = ctrl+page_up=previous_tab
keybind = ctrl+page_down=next_tab
keybind = ctrl+shift+left=previous_tab
keybind = ctrl+shift+right=next_tab
keybind = ctrl+space>shift+tab=previous_tab
keybind = ctrl+space>tab=next_tab
keybind = ctrl+space>t=new_tab

View file

@ -39,6 +39,10 @@ update_path "$PNPM_HOME"
{{ #if (command_success "[ -d $HOME/.bun ]") }} {{ #if (command_success "[ -d $HOME/.bun ]") }}
export BUN_INSTALL="$HOME/.bun" export BUN_INSTALL="$HOME/.bun"
update_path "$BUN_INSTALL/bin" update_path "$BUN_INSTALL/bin"
# bun completions
[ -s "/home/aleidk/.bun/_bun" ] && source "/home/aleidk/.bun/_bun"
{{ /if }} {{ /if }}
{{ #if (is_executable "rye") }} {{ #if (is_executable "rye") }}
@ -50,6 +54,10 @@ source "$HOME/.rye/env"
update_path "$HOME/.cargo/bin/" update_path "$HOME/.cargo/bin/"
{{ /if }} {{ /if }}
{{ #if (is_executable "tofu") }}
complete -o nospace -C /usr/bin/tofu tofu
{{ /if }}
{{~ #if (eq (env_var "OS") "macos") }} {{~ #if (eq (env_var "OS") "macos") }}
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
{{ /if ~}} {{ /if ~}}