# === General settings ===
[main]
shell=/bin/zsh -c "exec ~/.profile.d/tmux.sh"   # Default shell to launch in the terminal
font=0xProto Nerd Font:size=14                  # Font family and size used in the terminal
initial-window-size-chars=160x45                # Initial size in character columns x rows
selection-target=clipboard                      # Copy selected text directly to system clipboard
term=foot                                       # Terminal type identifier (useful for compatibility)
pad=8x8                                         # Adds 8-pixel padding around the content (horizontal x vertical)

# === Mouse settings ===
[mouse]
hide-when-typing=yes                     # Automatically hide the mouse cursor while typing
alternate-scroll-mode=no                 # Preserves scrollback history when applications exit (does not use alternate screen buffer)

# === Scrollback bar indicator settings ===
[scrollback]
lines=10000                              # Number of scrollback lines to keep in history
indicator-format=percentage              # Format of scroll indicator (e.g., "50%")

# === Key bindings ===
[key-bindings]
scrollback-up-page=Shift+Page_Up         # Scroll up one page
scrollback-down-page=Shift+Page_Down     # Scroll down one page
clipboard-copy=Control+Shift+c           # Copy selected text to clipboard
clipboard-paste=Control+Shift+v          # Paste from clipboard
show-urls-launch=Control+Shift+o         # Detects and allows launching URLs found in the terminal output

# === Cursor appearance ===
[cursor]
style=beam                               # Beam-style (vertical bar) cursor
blink=true                               # Cursor should blink
beam-thickness=3                         # Thickness of the beam cursor

# === Catppuccin Mocha color scheme ===
[colors]
alpha=0.9
cursor=11111b f5e0dc                     # Cursor color (background and foreground)
foreground=cdd6f4                        # Default text color
background=1e1e2e                        # Main terminal background color

regular0=45475a                          # ANSI Black/Grey
regular1=f38ba8                          # ANSI Red
regular2=a6e3a1                          # ANSI Green
regular3=f9e2af                          # ANSI Yellow
regular4=89b4fa                          # ANSI Blue
regular5=f5c2e7                          # ANSI Magenta
regular6=94e2d5                          # ANSI Cyan
regular7=bac2de                          # ANSI White/Light Grey

bright0=585b70                           # Bright ANSI Black/Grey
bright1=f38ba8                           # Bright ANSI Red
bright2=a6e3a1                           # Bright ANSI Green
bright3=f9e2af                           # Bright ANSI Yellow
bright4=89b4fa                           # Bright ANSI Blue
bright5=f5c2e7                           # Bright ANSI Magenta
bright6=94e2d5                           # Bright ANSI Cyan
bright7=a6adc8                           # Bright ANSI White/Light Grey

16=fab387                                # Extended color 16 (Orange-like)
17=f5e0dc                                # Extended color 17 (Pink/Cream-like)

selection-foreground=cdd6f4              # Color of selected text
selection-background=414356              # Background color of selected text

search-box-no-match=11111b f38ba8        # Colors for search box when no match is found
search-box-match=cdd6f0 313244           # Colors for search box when a match is found

jump-labels=11111b fab387                # Colors for jump labels (e.g., in URL launcher)
urls=89b4fa                              # Color for detected URLs
