-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathghostty-config
More file actions
156 lines (128 loc) · 3.86 KB
/
ghostty-config
File metadata and controls
156 lines (128 loc) · 3.86 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# vim: ft=ghostty
# Ghostty Configuration
# 2025-12-20 23:00
# Common commands:
# ghostty +list-fonts
# ghostty +list-keybinds
# ghostty +list-themes
# ghostty +list-colors
# ghostty +list-actions
# ghostty +show-config
# cmd+shift+, to reload config
# Keybindings
#keybind = ctrl+q>r=reload_config
keybind = ctrl+shift+e=equalize_splits
#keybind = global:option+grave_accent=toggle_visibility
keybind = global:ctrl+grave_accent=toggle_visibility
keybind = performable:cmd+c=copy_to_clipboard
# Shift+Left/Right Arrow
keybind = shift+left=text:\x1b[1;2D
keybind = shift+right=text:\x1b[1;2C
keybind = shift+up=text:\x1b[1;2A
keybind = shift+down=text:\x1b[1;2B
# Ctrl+Left/Right Arrow (word navigation)
keybind = ctrl+left=text:\x1b[1;5D
keybind = ctrl+right=text:\x1b[1;5C
keybind = ctrl+up=text:\x1b[1;5A
keybind = ctrl+down=text:\x1b[1;5B
# Ctrl+Shift+Left/Right Arrow
keybind = ctrl+shift+left=text:\x1b[1;6D
keybind = ctrl+shift+right=text:\x1b[1;6C
keybind = ctrl+shift+up=text:\x1b[1;6A
keybind = ctrl+shift+down=text:\x1b[1;6B
# Home/End keys
keybind = shift+home=text:\x1b[1;2H
keybind = shift+end=text:\x1b[1;2F
keybind = ctrl+home=text:\x1b[1;5H
keybind = ctrl+end=text:\x1b[1;5F
# Fix Claude Code Interpreter newlines
# keybind = shift+enter=text:\n
keybind = shift+enter=text:\x1b\r
# Edit ghostty config with $EDITOR
keybind = super+,=text:ghostty +edit-config\n
# Word selection boundaries - using compiled-in default
# Ghostty's config parser can't include space, tab, or " in custom values
# (space/tab are trimmed, " is treated as a string delimiter).
# To add * as a boundary, this parser bug needs fixing upstream.
# See: https://github.com/ghostty-org/ghostty/issues
# Example: require cmd+q twice to quit
#keybind = cmd+q>cmd+q=quit
confirm-close-surface = always
# theme = Dracula
# theme = Sublette
# theme = TokyoNight
# theme = Earthsong
theme = Challenger Deep
selection-background = #357482
selection-foreground = #ffffff
split-divider-color = #444444
# Fix low-contrast text
palette = 7=#ffffff
# Font Configuration
font-thicken = true
font-thicken-strength = 100
font-family = "TX-02 Retina"
font-size = 15
# Disable ligatures
font-feature = -calt
cursor-text = #000000
#auto-update = check
auto-update-channel = tip
quit-after-last-window-closed = false
# window-decoration = none # breaks tabs
#macos-titlebar-style = hidden # breaks tabs
macos-titlebar-style = tabs
macos-titlebar-proxy-icon = visible
window-colorspace = display-p3
# Shell Configuration
shell-integration-features = cursor,sudo,title,ssh-env,ssh-terminfo
command = /opt/homebrew/bin/zsh
shell-integration = zsh
working-directory = /Users/samm
# Terminal Type
term = xterm-ghostty
# Window Configuration
# Maximize window on launch
maximize = false
window-width = 478
window-height = 114
window-position-x = 100
window-position-y = 0
window-padding-x = 5
window-padding-y = 5
window-padding-balance = true
# window-decoration = auto
window-save-state = always
# 100000000 = ~100mb per terminal
scrollback-limit = 100000000
# Cursor Configuration
cursor-style = block
cursor-style-blink = true
# Background Effects
background-opacity = 0.95
background-blur = 30
# Make inactive splits more obvious (1.0 = fully opaque, lower = more dimmed)
unfocused-split-opacity = 0.85
# Cell Spacing
adjust-cell-width = -11%
adjust-cell-height = -6%
# macOS Behaviour
macos-option-as-alt = false
macos-window-shadow = true
# Mouse Configuration
mouse-hide-while-typing = true
copy-on-select = false
cursor-click-to-move = false
mouse-shift-capture = true
#disable mouse reporting to apps like vim
mouse-reporting = false
#focus-follows-mouse = true
## clipboard protection
# prompts before programs read clipboard
clipboard-read = ask
# allows writing to clipboard
clipboard-write = allow
# warns about dangerous pastes (e.g., commands with newlines)
clipboard-paste-protection = true
# prevent title query attacks
title-report = false