Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save PierreAndreis/1dff74877867fccb8ba2dd89fa4bee87 to your computer and use it in GitHub Desktop.

Select an option

Save PierreAndreis/1dff74877867fccb8ba2dd89fa4bee87 to your computer and use it in GitHub Desktop.
# This is the configuration file for Ghostty.
#
# =============
# Theme
# =============
theme = GitHub Dark Default
# =============
# Keybinds
# =============
# tmux-style prefix: Ctrl+A is the "leader" key (like tmux's Ctrl+B)
# The ">" syntax means a chord: press Ctrl+A first, release, then press the next key
# Send raw text to terminal (for tmux passthrough if needed)
keybind = control+.=text:tmuxsw
keybind = control+,=text:tmuxnew
# Tab navigation (no prefix needed)
keybind = control+tab=next_tab
# macOS titlebar shows tabs instead of native titlebar
macos-titlebar-style = tabs
# Window management
keybind = ctrl+n=new_window
# Navigate between splits with Ctrl+HJKL (vim-style) or Ctrl+Arrow
keybind = ctrl+h=goto_split:left
keybind = ctrl+j=goto_split:bottom
keybind = ctrl+k=goto_split:top
keybind = ctrl+l=goto_split:right
keybind = super+left=goto_split:left
keybind = super+down=goto_split:bottom
keybind = super+up=goto_split:top
keybind = super+right=goto_split:right
# Create splits with Cmd+Shift+Arrow keys
keybind = super+shift+left=new_split:left
keybind = super+shift+down=new_split:down
keybind = super+shift+up=new_split:up
keybind = super+shift+right=new_split:right
# Close current split
keybind = super+w=close_surface
# Zoom/fullscreen a split with Ctrl+A > F
keybind = ctrl+a>f=toggle_split_zoom
# Tab management with Ctrl+A prefix
keybind = ctrl+a>c=new_tab
keybind = ctrl+a>n=next_tab
keybind = ctrl+a>p=previous_tab
# Reload config without restarting
keybind = super+shift+r=reload_config
# =============
# Shell & Font
# =============
shell-integration = zsh
font-family = JetBrains Mono
# =============
# Behavior
# =============
mouse-hide-while-typing = true
scrollback-limit = 10000000000
adjust-cursor-thickness = 20
cursor-style = block
cursor-style-blink = false
unfocused-split-opacity = 0.3
window-save-state = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment