# -*- conf -*-

# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no

# app-id=foot
# title=foot
# locked-title=no

font={{ term_font }}:style=Regular:size={{ font_size }}, {{ cjk_font }}:style=Regular:size={{ font_size }}
font-bold={{ term_font }}:style=Bold:size={{ font_size }}, {{ cjk_font }}:style=Bold:size={{ font_size }}
font-italic={{ term_font }}:style=Italic:size={{ font_size }}, {{ cjk_font }}:style=Italic:size={{ font_size }}
font-bold-italic={{ term_font }}:style=Bold Italic:size={{ font_size }}, {{ cjk_font }}:style=Bold Italic:size={{ font_size }}
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# box-drawings-uses-font-glyphs=no
dpi-aware=no

# initial-window-size-pixels=800x600  # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=2x2                             # optionally append 'center'
# resize-delay-ms=100

# notify=notify-send -a foot -i foot ${title} ${body}

# bold-text-in-bright=no
# bell=none
# word-delimiters=,│`|:"'()[]{}<>
# selection-target=primary
# workers=<number of logical CPUs>

[bell]
# urgent=no
# notify=no
# command=
# command-focused=no

[scrollback]
lines=10000
# multiplier=3.0
# indicator-position=relative
# indicator-format=

[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# protocols = http, https, ftp, ftps, file, gemini, gopher
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'

[cursor]
# style=block
color={{ background | regex_replace('^#', '') }} {{ foreground | regex_replace('^#', '') }}
# blink=no
beam-thickness=1.0
# underline-thickness=<font underline thickness>

[mouse]
hide-when-typing=yes
# alternate-scroll-mode=yes

[colors]
alpha={{ terminal_opacity }}
foreground={{ foreground | regex_replace('^#', '') }}
background={{ background | regex_replace('^#', '') }}

regular0={{ color0 | regex_replace('^#', '') }}
regular1={{ color1 | regex_replace('^#', '') }}
regular2={{ color2 | regex_replace('^#', '') }}
regular3={{ color3 | regex_replace('^#', '') }}
regular4={{ color4 | regex_replace('^#', '') }}
regular5={{ color5 | regex_replace('^#', '') }}
regular6={{ color6 | regex_replace('^#', '') }}
regular7={{ color7 | regex_replace('^#', '') }}

bright0={{ color8 | regex_replace('^#', '') }}
bright1={{ color9 | regex_replace('^#', '') }}
bright2={{ color10 | regex_replace('^#', '') }}
bright3={{ color11 | regex_replace('^#', '') }}
bright4={{ color12 | regex_replace('^#', '') }}
bright5={{ color13 | regex_replace('^#', '') }}
bright6={{ color14 | regex_replace('^#', '') }}
bright7={{ color15 | regex_replace('^#', '') }}

# selection-foreground=<inverse foreground/background>
# selection-background=<inverse foreground/background>
# jump-labels=<regular0> <regular3>
# urls=<regular3>
# scrollback-indicator=<regular0> <bright4>

[csd]
# preferred=server
# size=26
# color=<foreground color>
# button-width=26
# button-color=<background color>
# button-minimize-color=<regular4>
# button-maximize-color=<regular2>
# button-close-color=<regular1>

[key-bindings]
# scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none
# scrollback-down-line=none
# clipboard-copy=Control+Shift+C
# clipboard-paste=Control+Shift+V
# primary-paste=Shift+Insert
# search-start=Control+Shift+R
# font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+N
# minimize=none
# maximize=none
# fullscreen=F11
# pipe-visible=[sh -c "xurls | {{ launcher }} {{ dmenu_flag }} -p 'URLs' | xargs -r {{ default_browser }}"] none
# pipe-scrollback=[sh -c "xurls | {{ launcher }} {{ dmenu_flag }} -p 'URLs' | xargs -r {{ default_browser }}"] none
# pipe-selected=[xargs -r {{ default_browser }}] none
# show-urls-launch=Control+Shift+u
# show-urls-copy=none

[search-bindings]
# cancel=Control+g Escape
# commit=Return
# find-prev=Control+r
# find-next=Control+s
cursor-left=Left Shift+h
cursor-left-word=Control+Left Control+Shift+h
cursor-right=Right Shift+l
cursor-right-word=Control+Right Control+Shift+l
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-prev=BackSpace
delete-prev-word=Control+BackSpace
# delete-next=Delete
delete-next-word=Control+Delete
# extend-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+W
# clipboard-paste=Control+v Control+y
# primary-paste=Shift+Insert

[url-bindings]
# cancel=Control+g Control+d Escape
# toggle-url-visible=t

[mouse-bindings]
# primary-paste=BTN_MIDDLE
# select-begin=BTN_LEFT
# select-begin-block=Control+BTN_LEFT
# select-extend=BTN_RIGHT
# select-extend-character-wise=Control+BTN_RIGHT
# select-word=BTN_LEFT-2
# select-word-whitespace=Control+BTN_LEFT-2
# select-row=BTN_LEFT-3
