# vim: filetype=ghostty

# Terminal
term = "xterm-256color"

# Fonts
font-family = MonispaceNE NFM
font-size = 12
font-thicken = true

# Window
title = Ghostty
background = #333534
window-width = 80
window-height = 26
window-padding-x = 5
window-padding-y = 1
padding = 10%
# padding = -10%
# padding = +10%
padding = 10
padding = +10
window-colorspace = display-p3
macos-titlebar-style = native

# Keyboard
macos-option-as-alt = true

# Gruvbox
palette = 0=#202020
palette = 1=#ea6962
palette = 2=#a9b665
palette = 3=#d8a657
palette = 4=#7daea3
palette = 5=#d3869b
palette = 6=#89b482
palette = 7=#ddc7a1
palette = 8=#5a524c
palette = 9=#ea6962
palette = 10=#a9b665
palette = 11=#d8a657
palette = 12=#7daea3
palette = 13=#d3869b
palette = 14=#89b482
palette = 15=#fbf1c7
background = 202020
foreground = ddc7a1
cursor-color = ddc7a1
selection-background = 504945
selection-foreground = ddc7a1

macos-icon-ghost-color = ddc7a1
macos-icon-screen-color = 202020

config-file = ~/.config/ghostty/theme

keybind = clear
keybind = "clear"

keybind = cmd+shift+a=toggle
keybind = all:global:cmd+c=hello:a,b
keybind = all:global:cmd+physical:c+b=hello:a,10
keybind = all:global:cmd+physical:c+b>s+b=hello:a,10
keybind = all:global:cmd+physical:up+b>s+b=hello:a,10
#keybind = cmd+shift+opt+p=hello_world:loudly
# keybind = unconsumed:cmd+shift+opt+p=hello


keybind = alt+3=text:#
keybind = cmd+r=reload_config
keybind = cmd+alt+left=text:\x1b[1;5D
keybind = cmd+alt+right=text:\x1b[1;5C
keybind = cmd+shift+left=text:\x1b[1;6D
keybind = cmd+shift+right=text:\x1b[1;6C
keybind = cmd+shift+up=text:\x01K
keybind = cmd+shift+down=text:\x01k
keybind = cmd+shift+d=text:\x01-
keybind = cmd+w=text:\x01x
keybind = cmd+l=text:\x01;
keybind = cmd+comma=text:\x01L
keybind = cmd+shift+enter=text:\x01z
keybind = cmd+s=text:\x01s
keybind = cmd+p=text:\x01F
keybind = alt+right=text:\x1bF
keybind = alt+left=text:\x1bB

# Scroll
keybind = ctrl+shift+d=scroll_page_fractional:0.5
keybind = ctrl+shift+u=scroll_page_fractional:-0.5
keybind = ctrl+shift+nine=scroll_to_top
keybind = ctrl+shift+zero=scroll_to_bottom
keybind = ctrl+shift+z=jump_to_prompt:-1
keybind = ctrl+shift+x=jump_to_prompt:1

# Tab
keybind = ctrl+shift+[=previous_tab
keybind = ctrl+shift+]=next_tab

keybind = cmd+t=text:\x01c
keybind = cmd+d=text:\x01|
keybind = ctrl+shift+,=move_tab:-1
keybind = ctrl+shift+.=move_tab:1

theme = light:tinted-theming/base24-github,dark:tinted-theming/base16-gruvbox-dark-hard
