-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghostty.conf
More file actions
99 lines (87 loc) · 3.73 KB
/
Copy pathghostty.conf
File metadata and controls
99 lines (87 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Font
font-family = "FiraCode Nerd Font"
font-family-bold = "FiraCode Nerd Font Bold"
font-family-italic = "FiraCode Nerd Font Italic"
font-family-bold-italic = "FiraCode Nerd Font Bold Italic"
font-size = 18
# Theme
theme = "Gruvbox Dark Hard"
# Lift very low-contrast ANSI/faint colors without changing the palette much.
minimum-contrast = 1.5
# Cursor
cursor-style-blink = "false"
cursor-click-to-move = true
# Window
# Let AeroSpace own fullscreen/tiling. Ghostty native fullscreen creates macOS
# Spaces, which causes blank-screen/animation glitches when switching workspaces.
fullscreen = false
window-padding-x = 2
window-padding-y = 2
# Do not dim inactive splits: remote tmux/TUI panes become hard to read.
unfocused-split-opacity = 1.0
# Native tabs need a macOS titlebar. `hidden` makes Cmd+T behave like a new
# surface/window, so use the compact integrated tab style and hide traffic lights.
macos-titlebar-style = tabs
macos-window-buttons = hidden
# Terminal
scrollback-limit = 10000000
shell-integration-features = cursor,no-sudo,title
split-inherit-working-directory = true
# Keybindings - Tabs/windows
# Native tabs stay enabled. Use the Ghostty command palette to search/switch tabs.
keybind = super+n=new_window
keybind = super+t=new_tab
keybind = super+shift+h=goto_window:previous
keybind = super+shift+l=goto_window:next
keybind = super+shift+p=toggle_command_palette
# Keybindings - Herdr navigation passthrough
# Ctrl+H is historically encoded as Backspace (0x08). Force Ghostty to send the
# Kitty/CSI-u Ctrl+h sequence instead, so Herdr can see a real Ctrl+h key event.
keybind = ctrl+h=text:\x1b[104;5u
# Send physical Option+h/j/k/l as plain Alt escape sequences for direct Herdr
# workspace/agent cycling while preserving other Option combinations.
keybind = alt+key_h=esc:h
keybind = alt+key_j=esc:j
keybind = alt+key_k=esc:k
keybind = alt+key_l=esc:l
# Keybindings - Splits
# Let terminal apps own Ctrl-h/j/k/l. Herdr uses those chords for seamless
# Neovim/Herdr pane navigation; Ghostty's performable:goto_split can still
# intercept them when native Ghostty splits exist.
keybind = super+alt+arrow_left=unbind
keybind = super+alt+arrow_right=unbind
keybind = super+alt+arrow_up=unbind
keybind = super+alt+arrow_down=unbind
keybind = super+alt+h=goto_split:left
keybind = super+alt+j=goto_split:bottom
keybind = super+alt+k=goto_split:top
keybind = super+alt+l=goto_split:right
# Keybindings - Resize splits (nvim-like, replaces default super+ctrl+arrows)
keybind = super+ctrl+arrow_left=unbind
keybind = super+ctrl+arrow_right=unbind
keybind = super+ctrl+arrow_up=unbind
keybind = super+ctrl+arrow_down=unbind
keybind = super+ctrl+h=resize_split:left,10
keybind = super+ctrl+j=resize_split:down,10
keybind = super+ctrl+k=resize_split:up,10
keybind = super+ctrl+l=resize_split:right,10
# Keybindings - Override default equalize (was super+ctrl+equal)
keybind = super+ctrl+equal=unbind
keybind = alt+shift+equal=equalize_splits
# Keybindings - Scrollback (vim-like, Cmd+Alt-prefixed so defaults/shell/nvim still work)
keybind = super+alt+u=scroll_page_fractional:-0.5
keybind = super+alt+d=scroll_page_fractional:0.5
keybind = super+alt+b=scroll_page_up
keybind = super+alt+f=scroll_page_down
keybind = super+alt+y=scroll_page_lines:-1
keybind = super+alt+e=scroll_page_lines:1
keybind = super+alt+g=scroll_to_top
keybind = super+alt+shift+g=scroll_to_bottom
# Keybindings - Selection (adjusts an existing selection; Cmd+A selects all)
keybind = super+a=select_all
keybind = super+alt+shift+h=adjust_selection:left
keybind = super+alt+shift+j=adjust_selection:down
keybind = super+alt+shift+k=adjust_selection:up
keybind = super+alt+shift+l=adjust_selection:right
keybind = super+alt+shift+b=adjust_selection:page_up
keybind = super+alt+shift+f=adjust_selection:page_down