.\" Generated by scdoc 1.11.3 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "foot.ini" "5" "2024-04-17" .PP .SH NAME .PP foot.\&ini - configuration file for \fBfoot\fR(1) .PP .SH DESCRIPTION .PP \fBfoot\fR uses the standard \fIunix configuration format\fR, with section based key/value pairs.\& The default section is usually unnamed, i.\&e.\& not prefixed with a \fI[section]\fR.\& However it can also be explicitly named \fI[main]\fR, say if it needs to be reopened after any of the other sections.\& .PP foot will search for a configuration file in the following locations, in this order: .PP .RS 4 .PD 0 .IP \(bu 4 \fBXDG_CONFIG_HOME/foot/foot.\&ini\fR (defaulting to \fB$HOME/.\&config/foot/foot.\&ini\fR if unset) .IP \(bu 4 \fBXDG_CONFIG_DIRS/foot/foot.\&ini\fR (defaulting to \fB/etc/xdg/foot/foot.\&ini\fR if unset) .PD .PP .RE An example configuration file containing all options with their default value commented out will usually be installed to \fB/etc/xdg/foot/foot.\&ini\fR.\& .PP Options are set using KEY=VALUE pairs: .PP .RS 4 \fB[colors]\fR .br \fBbackground=000000\fR .br \fBforeground=ffffff\fR .PP .RE Empty values (\fBKEY=\fR) are not supported.\& String options do allow the empty string to be set, but it must be quoted: \fBKEY=""\fR) .PP .SH SECTION: main .PP \fBshell\fR .RS 4 Executable to launch.\& Typically a shell.\& Default: \fI$SHELL\fR if set, otherwise the user'\&s default shell (as specified in \fI/etc/passwd\fR).\& You can also pass arguments.\& For example \fB/bin/bash --norc\fR.\& .PP .RE \fBlogin-shell\fR .RS 4 Boolean.\& If enabled, the shell will be launched as a login shell, by prepending a '\&-'\& to argv[0].\& Default: \fIno\fR.\& .PP .RE \fBterm\fR .RS 4 Value to set the environment variable \fBTERM\fR to.\& Default: \fIfoot\fR .PP .RE \fBfont\fR, \fBfont-bold\fR, \fBfont-italic\fR, \fBfont-bold-italic\fR .RS 4 Comma separated list of fonts to use, in fontconfig format.\& That is, a font name followed by a list of colon-separated options.\& Most noteworthy is \fB:size=n\fR, which is used to set the font size.\& Note that the font size is also affected by the \fBdpi-aware\fR option.\& .PP Examples: .RS 4 .PD 0 .IP \(bu 4 Dina:weight=bold:slant=italic .IP \(bu 4 Courier New:size=12 .IP \(bu 4 Fantasque Sans Mono:fontfeatures=ss01 .IP \(bu 4 Meslo LG S:size=12, Noto Color Emoji:size=12 .PD .PP .RE For each option, the first font is the primary font.\& The remaining fonts are fallback fonts that will be used whenever a glyph cannot be found in the primary font.\& .PP The fallback fonts are searched in the order they appear.\& If a glyph cannot be found in any of the fallback fonts, the dynamic fallback list from fontconfig (for the primary font) is searched.\& .PP \fBfont-bold\fR, \fBfont-italic\fR and \fBfont-bold-italic\fR allow custom fonts to be used for bold/italic/bold+italic fonts.\& If left unconfigured, the bold/italic variants of the regular font(s) specified in \fBfont\fR are used.\& \fBNote\fR: you \fImay\fR have to tweak the size(s) of the custom bold/italic fonts to match the regular font.\& .PP To disable bold and/or italic fonts, set e.\&g.\& \fBfont-bold\fR to \fIexactly\fR the same value as \fBfont\fR.\& .PP Default: \fImonospace:size=8\fR (\fBfont\fR), \fInot set\fR (\fBfont-bold\fR, \fBfont-italic\fR, \fBfont-bold-italic\fR).\& .PP .RE \fBfont-size-adjustment\fR .RS 4 Amount, in \fIpoints\fR, \fIpixels\fR or \fIpercent\fR, to increment/decrement the font size when zooming in our out.\& .PP Examples: .nf .RS 4 font-size-adjustment=0\&.5 # Adjust by 0\&.5 points font-size-adjustment=10px # Adjust by 10 pixels font-size-adjustment=7\&.5% # Adjust by 7\&.5 percent .fi .RE .PP Default: \fI0.\&5\fR .PP .RE \fBinclude\fR .RS 4 Absolute path to configuration file to import.\& .PP The import file has its own section scope.\& I.\&e.\& the including configuration is still in the default section after the include, regardless of which section the included file ends in.\& .PP .RS 4 .PD 0 .IP \(bu 4 The path must be an absolute path, or start with \fB~/\fR.\& .IP \(bu 4 Multiple include directives are allowed, but only one path per directive.\& .IP \(bu 4 Nested imports are allowed.\& .PD .PP .RE Default: \fInot set\fR.\& .PP .RE \fBline-height\fR .RS 4 An absolute value, in \fIpoints\fR, that override line height from the font metrics.\& .PP You can specify a height in \fIpixels\fR by using the \fBpx\fR suffix: e.\&g.\& \fBline-height=12px\fR.\& .PP See also: \fBvertical-letter-offset\fR.\& .PP Default: \fInot set\fR.\& .PP .RE \fBletter-spacing\fR .RS 4 Spacing between letters, in \fIpoints\fR.\& A positive value will increase the cell size, and a negative value shrinks it.\& .PP You can specify a letter spacing in \fIpixels\fR by using the \fBpx\fR suffix: e.\&g.\& \fBletter-spacing=2px\fR.\& .PP See also: \fBhorizontal-letter-offset\fR.\& .PP Default: \fI0\fR.\& .PP .RE \fBhorizontal-letter-offset\fR, \fBvertical-letter-offset\fR .RS 4 Configure the horizontal and vertical offsets used when positioning glyphs within cells, in \fIpoints\fR, relative to the top left corner.\& .PP To specify an offset in \fIpixels\fR, append \fBpx\fR: e.\&g.\& \fBhorizontal-letter-offset=2px\fR.\& .PP Default: \fI0\fR.\& .PP .RE \fBunderline-offset\fR .RS 4 Use a custom offset for underlines.\& The offset is, by default, in \fIpoints\fR and relative the font'\&s baseline.\& A positive value positions the underline under the baseline, while a negative value positions it above the baseline.\& .PP To specify an offset in \fIpixels\fR, append \fBpx\fR: \fBunderline-offset=2px\fR.\& .PP If left unset (the default), the offset specified in the font is used, or estimated by foot if the font lacks underline positioning information.\& .PP Default: \fIunset\fR.\& .PP .RE \fBunderline-thickness\fR .RS 4 Use a custom thickness (height) for underlines.\& The thickness is, by default, in \fIpoints\fR.\& .PP To specify a thickness in \fIpixels\fR, append \fBpx\fR: \fBunderline-thickness=1px\fR.\& .PP If left unset (the default), the thickness specified in the font is used.\& .PP Default: \fIunset\fR .PP .RE \fBbox-drawings-uses-font-glyphs\fR Boolean.\& When disabled, foot generates .RS 4 box/line drawing characters itself.\& The are several advantages to doing this instead of using font glyphs: .PP .RS 4 .PD 0 .IP \(bu 4 No antialiasing effects where e.\&g.\& line endpoints appear dimmed down, or blurred.\& .IP \(bu 4 Line- and box characters are guaranteed to span the entire cell, resulting in a gap-less appearance.\& .IP \(bu 4 No alignment issues, i.\&e.\& lines are centered when they should be.\& .IP \(bu 4 Many fonts lack some, or all, of the line- and box drawing characters, causing fallback fonts to be used, which results in out-of-place looking glyphs (for example, badly sized).\& .PD .PP .RE When enabled, box/line drawing characters are rendered using font glyphs.\& This may result in a more uniform look, in some use cases.\& .PP Default: \fIno\fR.\& .PP .RE \fBdpi-aware\fR .RS 4 Boolean.\& .PP When set to \fByes\fR, fonts are sized using the monitor'\&s DPI, making a font of a given size have the same physical size, regardless of monitor.\& In other words, if you drag a foot window between different monitors, the font size remains the same.\& .PP In this mode, the monitor'\&s scaling factor is ignored; doubling the scaling factor will \fBnot\fR double the font size.\& .PP When set to \fBno\fR, the monitor'\&s DPI is ignored.\& The font is instead sized using the monitor'\&s scaling factor; doubling the scaling factor \fBdoes\fR double the font size.\& .PP Note that this option typically does not work with bitmap fonts, which only contains a pre-defined set of sizes, and cannot be dynamically scaled.\& Whichever size (of the available ones) that best matches the DPI or scaling factor, will be used.\& .PP Also note that if the font size has been specified in pixels (\fB:pixelsize=\fR\fIN\fR, instead of \fB:size=\fR\fIN\fR), DPI scaling (\fBdpi-aware=yes\fR) will have no effect (the specified pixel size will be used as is).\& But, if the monitor'\&s scaling factor is used to size the font (\fBdpi-aware=no\fR), the font'\&s pixel size will be multiplied with the scaling factor.\& .PP Default: \fIno\fR .PP .RE \fBpad\fR .RS 4 Padding between border and glyphs, in pixels (subject to output scaling), in the form \fIXxY\fR.\& .PP This will add \fIat least\fR X pixels on both the left and right sides, and Y pixels on the top and bottom sides.\& The grid content will be anchored in the top left corner.\& I.\&e.\& if the window manager forces an odd window size on foot, the additional pixels will be added to the right and bottom sides.\& .PP To instead center the grid content, append \fBcenter\fR (e.\&g.\& \fBpad=5x5 center\fR).\& .PP Default: \fI0x0\fR.\& .PP .RE \fBresize-delay-ms\fR .PP .RS 4 Time, in milliseconds, of "idle time" before foot performs text reflow, and sends the new window dimensions to the client application while doing an interactive resize of a foot window.\& Idle time in this context is a period of time where the window size is not changing.\& .PP In other words, while you are fiddling with the window size, foot does not send the updated dimensions to the client.\& It also does a fast "truncating" resize of the grid, instead of actually reflowing the contents.\& Only when you pause the fiddling for \fBresize-delay-ms\fR milliseconds is the client updated, and the contents properly reflowed.\& .PP Emphasis is on \fIwhile\fR here; as soon as the interactive resize ends (i.\&e.\& when you let go of the window border), the final dimensions is sent to the client, without any delays.\& .PP Setting it to 0 disables the delay completely.\& .PP Default: \fI100\fR.\& .PP .RE \fBresize-by-cells\fR .RS 4 Boolean.\& .PP When set to \fByes\fR, the window size will be constrained to multiples of the cell size (plus any configured padding).\& When set to \fBno\fR, the window size will be unconstrained, and padding may be adjusted as necessary to accommodate window sizes that are not multiples of the cell size.\& .PP This option only applies to floating windows.\& Sizes of maxmized, tiled or fullscreen windows will not be constrained to multiples of the cell size.\& .PP Default: \fIyes\fR .PP .RE \fBinitial-window-size-pixels\fR .RS 4 Initial window width and height in \fIpixels\fR (subject to output scaling), in the form \fIWIDTHxHEIGHT\fR.\& The height \fIincludes\fR the titlebar when using CSDs.\& Mutually exclusive to \fBinitial-window-size-chars\fR.\& Default: \fI700x500\fR.\& .PP .RE \fBinitial-window-size-chars\fR .RS 4 Initial window width and height in \fIcharacters\fR, in the form \fIWIDTHxHEIGHT\fR.\& Mutually exclusive to \fBinitial-window-size-pixels\fR.\&'\& .PP Note that if you have a multi-monitor setup, with different scaling factors, there is a possibility the window size will not be set correctly.\& If that is the case, use \fBinitial-window-size-pixels\fR instead.\& .PP Default: \fInot set\fR.\& .PP .RE \fBinitial-window-mode\fR .RS 4 Initial window mode for each newly spawned window: \fBwindowed\fR, \fBmaximized\fR or \fBfullscreen\fR.\& Default: \fIwindowed\fR.\& .PP .RE \fBtitle\fR .RS 4 Initial window title.\& Default: \fIfoot\fR.\& .PP .RE \fBlocked-title\fR .RS 4 Boolean.\& If enabled, applications are not allowed to change the title at run-time.\& Default: \fIno\fR.\& .PP .RE \fBapp-id\fR .RS 4 Value to set the \fBapp-id\fR property on the Wayland window to.\& The compositor can use this value to e.\&g.\& group multiple windows, or apply window management rules.\& Default: \fIfoot\fR (normal mode), or \fIfootclient\fR (server mode).\& .PP .RE \fBbold-text-in-bright\fR .RS 4 Semi-boolean.\& When enabled, bold text is rendered in a brighter color (in addition to using a bold font).\& The color is brightened by increasing its luminance.\& .PP If set to \fBpalette-based\fR, rather than a simple \fByes|true\fR, colors matching one of the 8 regular palette colors will be brightened using the corresponding bright palette color.\& Other colors will not be brightened.\& .PP Default: \fIno\fR.\& .PP .RE \fBword-delimiters\fR .RS 4 String of characters that act as word delimiters when selecting text.\& Note that whitespace characters are \fIalways\fR word delimiters, regardless of this setting.\& Default: \fI,│`|:"'\&()[]{}<>\fR .PP .RE \fBnotify\fR .RS 4 Command to execute to display a notification.\& \fI${title}\fR and \fI${body}\fR will be replaced with the notification'\&s actual \fItitle\fR and \fIbody\fR (message content).\& .PP \fI${app-id}\fR is replaced with the value of the command line option \fI--app-id\fR, and defaults to \fBfoot\fR (normal mode), or \fBfootclient\fR (server mode).\& .PP \fI${window-title}\fR is replaced with the current window title.\& .PP Applications can trigger notifications in the following ways: .PP .RS 4 .PD 0 .IP \(bu 4 OSC 777: \fB\ee]777;notify;;<body>\ee\e\e\fR .PD .PP .RE By default, notifications are \fBinhibited\fR if the foot window has keyboard focus.\& See \fInotify-focus-inhibit\fR.\& .PP Default: \fInotify-send -a ${app-id} -i ${app-id} ${title} ${body}\fR.\& .PP .RE \fBnotify-focus-inhibit\fR .RS 4 Boolean.\& If enabled, foot will not display notifications if the terminal window has keyboard focus.\& .PP Default: \fIyes\fR .PP .RE \fBselection-target\fR .RS 4 Clipboard target to automatically copy selected text to.\& One of \fBnone\fR, \fBprimary\fR, \fBclipboard\fR or \fBboth\fR.\& Default: \fIprimary\fR.\& .PP .RE \fBworkers\fR .RS 4 Number of threads to use for rendering.\& Set to 0 to disable multithreading.\& Default: the number of available logical CPUs (including SMT).\& Note that this is not always the best value.\& In some cases, the number of physical \fIcores\fR is better.\& .PP .RE \fButmp-helper\fR .RS 4 Path to utmp logging helper binary.\& .PP When starting foot, an utmp record is created by launching the helper binary with the following arguments: .PP .nf .RS 4 add $WAYLAND_DISPLAY .fi .RE .PP When foot is closed, the utmp record is removed by launching the helper binary with the following arguments: .PP .nf .RS 4 del $WAYLAND_DISPLAY .fi .RE .PP Set to \fBnone\fR to disable utmp records.\& Default: \fI/usr/lib/utempter/utempter\fR.\& .PP .RE .SH SECTION: environment .PP This section is used to define environment variables that will be set in the client application, in addition to the variables inherited from the terminal process itself.\& .PP The format is simply: .PP \fBname\fR=\fIvalue\fR .PP Note: do not set \fBTERM\fR here; use the \fBterm\fR option in the main (default) section instead.\& .PP .SH SECTION: bell .PP \fBurgent\fR .RS 4 When set to \fIyes\fR, foot will signal urgency to the compositor through the XDG activation protocol whenever \fBBEL\fR is received, and the window does NOT have keyboard focus.\& .PP If the compositor does not implement this protocol, the margins will be painted in red instead.\& .PP Applications can enable/disable this feature programmatically with the \fBCSI ?\& 1042 h\fR and \fBCSI ?\& 1042 l\fR escape sequences.\& .PP Default: \fIno\fR .PP .RE \fBnotify\fR .RS 4 When set to \fIyes\fR, foot will emit a desktop notification using the command specified in the \fBnotify\fR option whenever \fBBEL\fR is received.\& By default, bell notifications are shown only when the window does \fBnot\fR have keyboard focus.\& See \fInotify-focus-inhibit\fR.\& .PP Default: \fIno\fR .PP .RE \fBvisual\fR .RS 4 When set to \fIyes\fR, foot will flash the terminal window.\& Default: \fIno\fR .PP .RE \fBcommand\fR .RS 4 When set, foot will execute this command when \fBBEL\fR is received.\& Default: none .PP .RE \fBcommand-focused\fR .RS 4 Whether to run the command on \fBBEL\fR even while focused.\& Default: \fIno\fR .PP .RE .SH SECTION: scrollback .PP \fBlines\fR .RS 4 Number of scrollback lines.\& The maximum number of allocated lines will be this value plus the number of visible lines, rounded up to the nearest power of 2.\& Default: \fI1000\fR.\& .PP .RE \fBmultiplier\fR .RS 4 Amount to multiply mouse scrolling with.\& It is a decimal number, i.\&e.\& fractions are allowed.\& Default: \fI3.\&0\fR.\& .PP .RE \fBindicator-position\fR .RS 4 Configures the style of the scrollback position indicator.\& One of \fBnone\fR, \fBfixed\fR or \fBrelative\fR.\& \fBnone\fR disables the indicator completely.\& \fBfixed\fR always renders the indicator near the top of the window, and \fBrelative\fR renders the indicator at the position corresponding to the current scrollback position.\& Default: \fIrelative\fR.\& .PP .RE \fBindicator-format\fR .RS 4 Which format to use when displaying the scrollback position indicator.\& Either \fIpercentage\fR, \fIline\fR, or a custom fixed string.\& This option is ignored if \fBindicator-position=none\fR.\& Default: \fIempty string\fR.\& .PP .RE .SH SECTION: url .PP \fBlaunch\fR .RS 4 Command to execute when opening URLs.\& \fI${url}\fR will be replaced with the actual URL.\& Default: \fIxdg-open ${url}\fR.\& .PP .RE \fBosc8-underline\fR .RS 4 When to underline OSC-8 URLs.\& Possible values are \fBurl-mode\fR and \fBalways\fR.\& .PP When set to \fBurl-mode\fR, OSC-8 URLs are only highlighted in URL mode, just like auto-detected URLs.\& .PP When set to \fBalways\fR, OSC-8 URLs are always highlighted, regardless of their other attributes (bold, italic etc).\& Note that this does \fInot\fR make them clickable.\& .PP Default: \fIurl-mode\fR .PP .RE \fBlabel-letters\fR .RS 4 String of characters to use when generating key sequences for URL jump labels.\& .PP If you change this option to include the letter \fBt\fR, you should also change the default \fB[url-bindings].\&toggle-url-visible\fR key binding to avoid a clash.\& .PP Default: \fIsadfjklewcmpgh\fR.\& .PP .RE \fBprotocols\fR .RS 4 Comma separated list of protocols (schemes) that should be recognized in URL mode.\& Note that only auto-detected URLs are affected by this option.\& OSC-8 URLs are always enabled, regardless of protocol.\& Default: \fIhttp, https, ftp, ftps, file, gemini, gopher, irc, ircs\fR.\& .PP .RE \fBuri-characters\fR .RS 4 Set of characters allowed in auto-detected URLs.\& Any character not included in this set constitutes a URL delimiter.\& .PP Default: \fIabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.\&,~:;/?\&#@!\&$&%*+="'\&()[]\fR .PP .RE .SH SECTION: cursor .PP This section controls the cursor style and color.\& Note that applications can change these at runtime.\& .PP \fBstyle\fR .RS 4 Configures the default cursor style, and is one of: \fBblock\fR, \fBbeam\fR or \fBunderline\fR.\& Note that this can be overridden by applications.\& Default: \fIblock\fR.\& .PP .RE \fBunfocused-style\fR .RS 4 Configures how the cursor is rendered when the terminal window is unfocused.\& Possible values are: .PP .PD 0 .IP \(bu 4 unchanged: render cursor in exactly the same way as when the window has focus.\& .IP \(bu 4 hollow: render a block cursor, but hollowed out.\& .IP \(bu 4 none: do not display any cursor at all.\& .PD .PP .RE \fBblink\fR .RS 4 Boolean.\& Enables blinking cursor.\& Note that this can be overridden by applications.\& Default: \fIno\fR.\& .PP .RE \fBcolor\fR .RS 4 Two space separated RRGGBB values (i.\&e.\& plain old 6-digit hex values, without prefix) specifying the foreground (text) and background (cursor) colors for the cursor.\& .PP Example: \fBff0000 00ff00\fR (green cursor, red text) .PP Default: the regular foreground and background colors, reversed.\& .PP .RE \fBbeam-thickness\fR .RS 4 Thickness (width) of the beam styled cursor.\& The value is in points, and its exact value thus depends on the monitor'\&s DPI.\& To instead specify a thickness in pixels, use the \fBpx\fR suffix: e.\&g.\& \fBbeam-thickness=2px\fR.\& Default: \fI1.\&5\fR .PP .RE \fBunderline-thickness\fR .RS 4 Thickness (height) of the underline styled cursor.\& The value is in points, and its exact value thus depends on the monitor'\&s DPI.\& .PP To instead specify a thickness in pixels, use the \fBpx\fR suffix: e.\&g.\& \fBunderline-thickness=2px\fR.\& .PP Note that if left unset, the cursor'\&s thickness will scale with the font size, while if set, the size is fixed.\& .PP Default: \fIfont underline thickness\fR.\& .PP .RE .SH SECTION: mouse .PP \fBhide-when-typing\fR .RS 4 Boolean.\& When enabled, the mouse cursor is hidden while typing.\& Default: \fIno\fR.\& .PP .RE \fBalternate-scroll-mode\fR .RS 4 Boolean.\& This option controls the initial value for the \fIalternate scroll mode\fR.\& When this mode is enabled, mouse scroll events are translated to \fIup\fR/\fIdown\fR key events when displaying the alternate screen.\& .PP This lets you scroll with the mouse in e.\&g.\& pagers (like \fIless\fR) without enabling native mouse support in them.\& .PP Alternate scrolling is \fBnot\fR used if the application enables native mouse support.\& .PP This option can be modified by applications at run-time using the escape sequences \fBCSI ?\& 1007 h\fR (enable) and \fBCSI ?\& 1007 l\fR (disable).\& .PP Default: \fIyes\fR.\& .PP .RE .SH SECTION: touch .PP \fBlong-press-delay\fR .RS 4 Number of milliseconds to distinguish between a short press and a long press on the touchscreen.\& .PP Default: \fI400\fR.\& .PP .RE .SH SECTION: colors .PP This section controls the 16 ANSI colors, the default foreground and background colors, and the extended 256 color palette.\& Note that applications can change these at runtime.\& .PP The colors are in RRGGBB format (i.\&e.\& plain old 6-digit hex values, without prefix).\& That is, they do \fBnot\fR have an alpha component.\& You can configure the background transparency with the \fIalpha\fR option.\& .PP \fBforeground\fR .RS 4 Default foreground color.\& This is the color used when no ANSI color is being used.\& Default: \fI839496\fR.\& .PP .RE \fBbackground\fR .RS 4 Default background color.\& This is the color used when no ANSI color is being used.\& Default: \fI002b36\fR.\& .PP .RE \fBregular0\fR, \fBregular1\fR \fB.\&.\&\fR \fBregular7\fR .RS 4 The eight basic ANSI colors (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White).\& Default: \fI242424\fR, \fIf62b5a\fR, \fI47b413\fR, \fIe3c401\fR, \fI24acd4\fR, \fIf2affd\fR, \fI13c299\fR, \fIe6e6e6\fR (starlight theme, V4).\& .PP .RE \fBbright0\fR, \fBbright1\fR \fB.\&.\&\fR \fBbright7\fR .RS 4 The eight bright ANSI colors (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White).\& Default: \fI616161\fR, \fIff4d51\fR, \fI35d450\fR, \fIe9e836\fR, \fI5dc5f8\fR, \fIfeabf2\fR, \fI24dfc4\fR, \fIffffff\fR (starlight theme, V4).\& .PP .RE \fBdim0\fR, \fBdim1\fR \fB.\&.\&\fR \fBdim7\fR .RS 4 Custom colors to use with dimmed colors.\& Dimmed colors do not have an entry in the color palette.\& Applications emit them by combining a color value, and a "dim" attribute.\& .PP By default, foot implements this by reducing the luminance of the current color.\& This is a generic approach that applies to both colors from the 256-color palette, as well as 24-bit RGB colors.\& .PP You can change this behavior by setting the \fBdimN\fR options.\& When set, foot will match the current color against the color palette, and if it matches one of the \fBregularN\fR colors, the corresponding \fBdimN\fR color will be used.\& .PP If instead the current color matches one of the \fBbrightN\fR colors, the corresponding \fBregularN\fR color will be used.\& .PP If the current color does not match any known color, it is dimmed by reducing the luminance (i.\&e.\& the same behavior as if the \fBdimN\fR options are unconfigured).\& 24-bit RGB colors will typically fall into this category.\& .PP Note that applications can change the \fBregularN\fR and \fBbrightN\fR colors at runtime.\& However, they have no way of changing the \fBdimN\fR colors.\& If an application has changed the \fBregularN\fR colors, foot will still use the corresponding \fBdimN\fR color, as configured in foot.\&ini.\& .PP Default: \fInot set\fR.\& .PP .RE \fB0\fR \fB.\&.\&\fR \fB255\fR .RS 4 Arbitrary colors in the 256-color palette.\& Default: for \fB0\fR \fB.\&.\&\fR \fB15\fR, see regular and bright defaults above; see https://en.\&wikipedia.\&org/wiki/ANSI_escape_code#8-bit for an explanation of the remainder.\& .PP .RE \fBalpha\fR .RS 4 Background translucency.\& A value in the range 0.\&0-1.\&0, where 0.\&0 means completely transparent, and 1.\&0 is opaque.\& Default: \fI1.\&0\fR.\& .PP .RE \fBselection-foreground\fR, \fBselection-background\fR .RS 4 Foreground (text) and background color to use in selected text.\& Note that \fBboth\fR options must be set, or the default will be used.\& Default: \fIinverse foreground/background\fR.\& .PP .RE \fBjump-labels\fR .RS 4 Two color values specifying the foreground (text) and background colors to use when rendering jump labels in URL mode.\& Default: \fIregular0 regular3\fR.\& .PP .RE \fBscrollback-indicator\fR .RS 4 Two color values specifying the foreground (text) and background (indicator itself) colors for the scrollback indicator.\& Default: \fIregular0 bright4\fR.\& .PP .RE \fBsearch-box-no-match\fR .RS 4 Two color values specifying the foreground (text) and background colors for the scrollback search box, when there are no matches.\& Default: \fIregular0 regular1\fR.\& .PP .RE \fBsearch-box-match\fR .RS 4 Two color values specifying the foreground (text) and background colors for the scrollback search box, when the search box is either empty, or there are matches.\& Default: \fIregular0 regular3\fR.\& .PP .RE \fBurls\fR .RS 4 Color to use for the underline used to highlight URLs in URL mode.\& Default: \fIregular3\fR.\& .PP .RE \fBflash\fR .RS 4 Color to use for the terminal window flash.\& Default: \fI7f7f00\fR.\& .PP .RE \fBflash-alpha\fR .RS 4 Flash translucency.\& A value in the range 0.\&0-1.\&0, where 0.\&0 means completely transparent, and 1.\&0 is opaque.\& Default: \fI0.\&5\fR.\& .PP .RE .SH SECTION: csd .PP This section controls the look of the \fICSDs\fR (Client Side Decorations).\& Note that the default is to \fBnot\fR use CSDs, but instead to use \fISSDs\fR (Server Side Decorations) when the compositor supports it.\& .PP Note that unlike the colors defined in the \fIcolors\fR section, the color values here are in AARRGGBB (i.\&e.\& plain old 8-digit hex values) format.\& I.\&e.\& they contain an alpha component - 00 means completely transparent, and ff fully opaque.\& .PP Examples: .PP .PD 0 .IP \(bu 4 ffffffff: white, fully opaque .IP \(bu 4 ff000000: black, fully opaque .IP \(bu 4 7fffffff: white, semi-transparent .IP \(bu 4 ff00ff00: green, fully opaque .PD .PP \fBpreferred\fR .RS 4 Which type of window decorations to prefer: \fBclient\fR (CSD), \fBserver\fR (SSD) or \fBnone\fR.\& .PP Note that this is only a hint to the compositor.\& Depending on compositor support, and how it has been configured, it may instruct foot to use CSDs even though this option has been set to \fBserver\fR, or render SSDs despite \fBclient\fR or \fBnone\fR being set.\& .PP Default: \fIserver\fR.\& .PP .RE \fBsize\fR .RS 4 Height, in pixels (subject to output scaling), of the titlebar.\& Setting it to 0 will hide the titlebar, while still showing the border (if \fBborder-width\fR is set to a non-zero value).\& Default: \fI26\fR.\& .PP .RE \fBcolor\fR .RS 4 Titlebar color.\& Default: use the default \fIforeground\fR color.\& .PP .RE \fBfont\fR .RS 4 Font to use for the title bar.\& This is a list of fonts, similar to the main \fBfont\fR option.\& Note that the font will be sized using the title bar size.\& That is, all \fB:size\fR and \fB:pixelsize\fR attributes will be ignored.\& Default: \fIprimary font\fR.\& .PP .RE \fBhide-when-maximized\fR .RS 4 Boolean.\& When enabled, the CSD titlebar is hidden when the window is maximized.\& The completely disable the titlebar, set \fBsize\fR to 0 instead.\& Default: \fIno\fR.\& .PP .RE \fBdouble-click-to-maximize\fR .RS 4 Boolean.\& When enabled, double-clicking the CSD titlebar will (un)maximize the window.\& Default: \fIyes\fR.\& .PP .RE \fBborder-width\fR .RS 4 Width of the border, in pixels (subject to output scaling).\& Note that the border encompasses the entire window, including the title bar.\& Default: \fI0\fR.\& .PP .RE \fBborder-color\fR .RS 4 Color of border.\& By default, the title bar color is used.\& If the title bar color has not been set, the default foreground color (from the color scheme) is used.\& Default: \fItitlebar color\fR.\& .PP .RE \fBbutton-width\fR .RS 4 Width, in pixels (subject to output scaling), of the minimize/maximize/close buttons.\& Default: \fI26\fR.\& .PP .RE \fBbutton-color\fR .RS 4 Foreground color on the minimize/maximize/close buttons.\& Default: use the default \fIbackground\fR color.\& .PP .RE \fBbutton-minimize-color\fR .RS 4 Minimize button'\&s background color.\& Default: use the default \fIregular4\fR color (blue).\& .PP .RE \fBbutton-maximize-color\fR .RS 4 Maximize button'\&s background color.\& Default: use the default \fIregular2\fR color (green).\& .PP .RE \fBbutton-close-color\fR .RS 4 Close button'\&s background color.\& Default: use the default \fIregular1\fR color (red).\& .PP .RE .SH SECTION: key-bindings .PP This section lets you override the default key bindings.\& .PP The general format is \fIaction=combo1.\&.\&.\&comboN\fR.\& That is, each action may have one or more key combinations, space separated.\& Each combination is in the form \fImod1+mod2+key\fR.\& The names of the modifiers and the key \fBmust\fR be valid XKB key names.\& .PP Note that if \fBShift\fR is one of the modifiers, the \fIkey\fR \fBmust not\fR be in upper case.\& For example, \fBControl+Shift+V\fR will never trigger, but \fBControl+Shift+v\fR will.\& .PP Note that \fBAlt\fR is usually called \fBMod1\fR.\& .PP \fBxkbcli interactive-wayland\fR can be useful for finding keysym names.\& .PP A key combination can only be mapped to \fBone\fR action.\& Lets say you want to bind \fBControl+Shift+R\fR to \fBfullscreen\fR.\& Since this is the default shortcut for \fBsearch-start\fR, you first need to unmap the default binding.\& This can be done by setting \fIaction=none\fR; e.\&g.\& \fBsearch-start=none\fR.\& .PP \fBnoop\fR .RS 4 All key combinations listed here will not be sent to the application.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-up-page\fR .RS 4 Scrolls up/back one page in history.\& Default: \fIShift+Page_Up\fR.\& .PP .RE \fBscrollback-up-half-page\fR .RS 4 Scrolls up/back half of a page in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-up-line\fR .RS 4 Scrolls up/back a single line in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-down-page\fR .RS 4 Scroll down/forward one page in history.\& Default: \fIShift+Page_Down\fR.\& .PP .RE \fBscrollback-down-half-page\fR .RS 4 Scroll down/forward half of a page in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-down-line\fR .RS 4 Scroll down/forward a single line in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-home\fR .RS 4 Scroll to the beginning of the scrollback.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-end\fR .RS 4 Scroll to the end (bottom) of the scrollback.\& Default: \fInone\fR.\& .PP .RE \fBclipboard-copy\fR .RS 4 Copies the current selection into the \fIclipboard\fR.\& Default: \fIControl+Shift+c\fR \fIXF86Copy\fR.\& .PP .RE \fBclipboard-paste\fR .RS 4 Pastes from the \fIclipboard\fR.\& Default: \fIControl+Shift+v\fR \fIXF86Paste\fR.\& .PP .RE \fBprimary-paste\fR .RS 4 Pastes from the \fIprimary selection\fR.\& Default: \fIShift+Insert\fR (also defined in \fBmouse-bindings\fR).\& .PP .RE \fBsearch-start\fR .RS 4 Starts a scrollback/history search.\& Default: \fIControl+Shift+r\fR.\& .PP .RE \fBfont-increase\fR .RS 4 Increases the font size by 0.\&5pt.\& Default: \fIControl+plus Control+equal Control+KP_Add\fR (also defined in \fBmouse-bindings\fR).\& .PP .RE \fBfont-decrease\fR .RS 4 Decreases the font size by 0.\&5pt.\& Default: \fIControl+minus Control+KP_Subtract\fR (also defined in \fBmouse-bindings\fR).\& .PP .RE \fBfont-reset\fR .RS 4 Resets the font size to the default.\& Default: \fIControl+0 Control+KP_0\fR.\& .PP .RE \fBspawn-terminal\fR .RS 4 Spawns a new terminal.\& If the shell has been configured to emit the OSC 7 escape sequence, the new terminal will start in the current working directory.\& Default: \fIControl+Shift+n\fR.\& .PP .RE \fBminimize\fR .RS 4 Minimizes the window.\& Default: \fInone\fR.\& .PP .RE \fBmaximize\fR .RS 4 Toggle the maximized state.\& Default: \fInone\fR.\& .PP .RE \fBfullscreen\fR .RS 4 Toggles the fullscreen state.\& Default: \fInone\fR.\& .PP .RE \fBpipe-visible\fR, \fBpipe-scrollback\fR, \fBpipe-selected\fR, \fBpipe-command-output\fR .RS 4 Pipes the currently visible text, the entire scrollback, the currently selected text, or the last command'\&s output to an external tool.\& The syntax for this option is a bit special; the first part of the value is the command to execute enclosed in "[]", followed by the binding(s).\& .PP You can configure multiple pipes as long as the command strings are different and the key bindings are unique.\& .PP Note that the command is \fBnot\fR automatically run inside a shell; use \fBsh -c "command line"\fR if you need that.\& .PP Example #1: .RS 4 # Extract currently visible URLs, let user choose one (via fuzzel), then launch firefox with the selected URL .br \fBpipe-visible=[sh -c "xurls | uniq | tac | fuzzel | xargs -r firefox"] Control+Print\fR .PP .RE Example #2: .RS 4 # Open scrollback contents in Emacs running in a new foot instance .br \fBpipe-scrollback=[sh -c "f=$(mktemp) && cat - > $f && foot emacsclient -t $f; rm $f"] Control+Shift+Print\fR .PP .RE Default: \fInone\fR .PP .RE \fBshow-urls-launch\fR .RS 4 Enter URL mode, where all currently visible URLs are tagged with a jump label with a key sequence that will open the URL (and exit URL mode).\& Default: \fIControl+Shift+o\fR.\& .PP .RE \fBshow-urls-persistent\fR .RS 4 Similar to \fBshow-urls-launch\fR, but does not automatically exit URL mode after activating an URL.\& Default: \fInone\fR.\& .PP .RE \fBshow-urls-copy\fR .RS 4 Enter URL mode, where all currently visible URLs are tagged with a jump label with a key sequence that will place the URL in the clipboard.\& Default: \fInone\fR.\& .PP .RE \fBprompt-prev\fR .RS 4 Jump to the previous, currently not visible, prompt (requires shell integration, see \fBfoot\fR(1)).\& Default: \fIControl+Shift+z\fR.\& .PP .RE \fBprompt-next\fR .RS 4 Jump the next prompt (requires shell integration, see \fBfoot\fR(1)).\& Default: \fIControl+Shift+x\fR.\& .PP .RE \fBunicode-input\fR .RS 4 Input a Unicode character by typing its codepoint in hexadecimal, followed by \fBEnter\fR or \fBSpace\fR.\& .PP For example, to input the character \fIö\fR (LATIN SMALL LETTER O WITH DIAERESIS, Unicode codepoint 0xf6), you would first activate this key binding, then type: \fBf\fR, \fB6\fR, \fBEnter\fR.\& .PP Another example: to input 😍 (SMILING FACE WITH HEART-SHAPED EYES, Unicode codepoint 0x1f60d), activate this key binding, then type: \fB1\fR, \fBf\fR, \fB6\fR, \fB0\fR, \fBd\fR, \fBEnter\fR.\& .PP Recognized key bindings in Unicode input mode: .PP .PD 0 .IP \(bu 4 Enter, Space: commit the Unicode character, then exit this mode.\& .IP \(bu 4 Escape, q, Ctrl+c, Ctrl+d, Ctrl+g: abort input, then exit this mode.\& .IP \(bu 4 0-9, a-f: append next digit to the Unicode'\&s codepoint.\& .IP \(bu 4 Backspace: undo the last digit.\& .PD .PP Note that there is no visual feedback while in this mode.\& This is by design; foot'\&s Unicode input mode is considered to be a fallback.\& The preferred way of entering Unicode characters, emojis etc is by using an IME.\& .PP Default: \fIControl+Shift+u\fR.\& .PP .RE \fBquit\fR .RS 4 Quit foot.\& Default: \fInone\fR.\& .PP .RE .SH SECTION: search-bindings .PP This section lets you override the default key bindings used in scrollback search mode.\& The syntax is exactly the same as the regular \fB\fRkey-bindings\fB\fR.\& .PP \fBcancel\fR .RS 4 Aborts the search.\& The viewport is restored and the \fIprimary selection\fR is \fB\fRnot\fB\fR updated.\& Default: \fIControl+g Control+c Escape\fR.\& .PP .RE \fBcommit\fR .RS 4 Exit search mode and copy current selection into the \fIprimary selection\fR.\& Viewport is \fB\fRnot\fB\fR restored.\& To copy the selection to the regular \fIclipboard\fR, use \fBControl+Shift+c\fR.\& Default: \fIReturn\fR.\& .PP .RE \fBfind-prev\fR .RS 4 Search \fB\fRbackwards\fB\fR in the scrollback history for the next match.\& Default: \fIControl+r\fR.\& .PP .RE \fBfind-next\fR .RS 4 Searches \fB\fRforwards\fB\fR in the scrollback history for the next match.\& Default: \fIControl+s\fR.\& .PP .RE \fBcursor-left\fR .RS 4 Moves the cursor in the search box one \fB\fRcharacter\fB\fR to the left.\& Default: \fILeft Control+b\fR.\& .PP .RE \fBcursor-left-word\fR .RS 4 Moves the cursor in the search box one \fB\fRword\fB\fR to the left.\& Default: \fIControl+Left Mod1+b\fR.\& .PP .RE \fBcursor-right\fR .RS 4 Moves the cursor in the search box one \fB\fRcharacter\fB\fR to the right.\& Default: \fIRight Control+f\fR.\& .PP .RE \fBcursor-right-word\fR .RS 4 Moves the cursor in the search box one \fB\fRword\fB\fR to the right.\& Default: \fIControl+Right Mod1+f\fR.\& .PP .RE \fBcursor-home\fR .RS 4 Moves the cursor in the search box to the beginning of the input.\& Default: \fIHome Control+a\fR.\& .PP .RE \fBcursor-end\fR .RS 4 Moves the cursor in the search box to the end of the input.\& Default: \fIEnd Control+e\fR.\& .PP .RE \fBdelete-prev\fR .RS 4 Deletes the \fB\fRcharacter before\fB\fR the cursor.\& Default: \fIBackSpace\fR.\& .PP .RE \fBdelete-prev-word\fR .RS 4 Deletes the \fB\fRword before\fB\fR the cursor.\& Default: \fIMod1+BackSpace Control+BackSpace\fR.\& .PP .RE \fBdelete-next\fR .RS 4 Deletes the \fB\fRcharacter after\fB\fR the cursor.\& Default: \fIDelete\fR.\& .PP .RE \fBdelete-next-word\fR .RS 4 Deletes the \fB\fRword after\fB\fR the cursor.\& Default: \fIMod1+d Control+Delete\fR.\& .PP .RE \fBextend-char\fR .RS 4 Extend current selection to the right, by one character.\& Default: \fIShift+Right\fR.\& .PP .RE \fBextend-to-word-boundary\fR .RS 4 Extend current selection to the right, to the next word boundary.\& Default: \fIControl+w Control+Shift+Right\fR.\& .PP .RE \fBextend-to-next-whitespace\fR .RS 4 Extend the current selection to the right, to the next whitespace.\& Default: \fIControl+Shift+w\fR.\& .PP .RE \fBextend-line-down\fR .RS 4 Extend current selection down one line.\& Default: \fIShift+Down\fR.\& .PP .RE \fBextend-backward-char\fR .RS 4 Extend current selection to the left, by one character.\& Default: \fIShift+Left\fR.\& .PP .RE \fBextend-backward-to-word-boundary\fR .RS 4 Extend current selection to the left, to the next word boundary.\& Default: \fIControl+Shift+Left\fR.\& .PP .RE \fBextend-backward-to-next-whitespace\fR .RS 4 Extend the current selection to the left, to the next whitespace.\& Default: \fInone\fR.\& .PP .RE \fBextend-line-up\fR .RS 4 Extend current selection up one line.\& Default: \fIShift+Up\fR.\& .PP .RE \fBclipboard-paste\fR .RS 4 Paste from the \fIclipboard\fR into the search buffer.\& Default: \fIControl+v Control+y\fR.\& .PP .RE \fBprimary-paste\fR .RS 4 Paste from the \fIprimary selection\fR into the search buffer.\& Default: \fIShift+Insert\fR.\& .PP .RE \fBunicode-input\fR .RS 4 Unicode input mode.\& See \fIkey-bindings.\&unicode-input\fR for details.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-up-page\fR .RS 4 Scrolls up/back one page in history.\& Default: \fIShift+Page_Up\fR.\& .PP .RE \fBscrollback-up-half-page\fR .RS 4 Scrolls up/back half of a page in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-up-line\fR .RS 4 Scrolls up/back a single line in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-down-page\fR .RS 4 Scroll down/forward one page in history.\& Default: \fIShift+Page_Down\fR.\& .PP .RE \fBscrollback-down-half-page\fR .RS 4 Scroll down/forward half of a page in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-down-line\fR .RS 4 Scroll down/forward a single line in history.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-home\fR .RS 4 Scroll to the beginning of the scrollback.\& Default: \fInone\fR.\& .PP .RE \fBscrollback-end\fR .RS 4 Scroll to the end (bottom) of the scrollback.\& Default: \fInone\fR.\& .PP .RE .SH SECTION: url-bindings .PP This section lets you override the default key bindings used in URL mode.\& The syntax is exactly the same as the regular \fB\fRkey-bindings\fB\fR.\& .PP Be careful; do not use single-letter keys that are also used in \fB[url].\&label-letters\fR, as doing so will make some URLs inaccessible.\& .PP \fBcancel\fR .RS 4 Exits URL mode without opening a URL.\& Default: \fIControl+g Control+c Control+d Escape\fR.\& .PP .RE \fBtoggle-url-visible\fR .RS 4 By default, the jump label only shows the key sequence required to activate it.\& This is fine as long as the URL is visible in the original text.\& .PP But with e.\&g.\& OSC-8 URLs (the terminal version of HTML anchors, i.\&e.\& "links"), the text on the screen can be something completely different than the URL.\& .PP This action toggles between showing and hiding the URL on the jump label.\& .PP Default: \fIt\fR.\& .PP .RE .SH SECTION: text-bindings .PP This section lets you remap key combinations to custom escape sequences.\& .PP The format is \fItext=combo1.\&.\&.\&comboN\fR.\& That is, the string to emit may have one or more key combinations, space separated.\& Each combination is in the form \fImod1+mod2+key\fR.\& The names of the modifiers and the key \fBmust\fR be valid XKB key names.\& .PP The text string specifies the characters, or bytes, to emit when the associated key combination(s) are pressed.\& There are two ways to specify a character: .PP .PD 0 .IP \(bu 4 Normal, printable characters are written as-is: \fBabcdef\fR.\& .IP \(bu 4 Bytes (e.\&g.\& ESC) are written as two-digit hexadecimal numbers, with a \fB\ex\fR prefix: \fB\ex1b\fR.\& .PD .PP Example: you would like to remap \fISuper+k\fR to the \fIUp\fR key.\& .PP The escape sequence for the Up key is \fIESC [ A\fR (without the spaces).\& Thus, we need to specify this in foot.\&ini (\fBMod4\fR is the XKB name for the Super/logo key): .PP \fB\ex1b[A = Mod4+k\fR .PP Another example: to remap \fISuper+c\fR to \fIControl+c\fR: .PP \fB\ex03 = Mod4+c\fR .PP .SH SECTION: mouse-bindings .PP This section lets you override the default mouse bindings.\& .PP The general format is \fIaction=combo1.\&.\&.\&comboN\fR.\& That is, each action may have one or more key combinations, space separated.\& Each combination is in the form \fImod1+mod2+BTN_<name>[-COUNT]\fR.\& The names of the modifiers \fBmust\fR be valid XKB key names, and the button name \fBmust\fR be a valid libinput name.\& You can find the button names using \fBlibinput debug-events\fR.\& .PP The trailing \fBCOUNT\fR (number of times the button has to be clicked) is optional and specifies the click count required to trigger the binding.\& The default if \fBCOUNT\fR is omitted is \fI1\fR.\& .PP To map wheel events (i.\&e.\& scrolling), use the button names \fBBTN_BACK\fR (up) and \fBBTN_FORWARD\fR (down).\& Note that these events never generate a \fBCOUNT\fR larger than 1.\& That is, \fBBTN_BACK+2\fR, for example, will never trigger.\& .PP A modifier+button combination can only be mapped to \fBone\fR action.\& Lets say you want to bind \fBBTN_MIDDLE\fR to \fBfullscreen\fR.\& Since \fBBTN_MIDDLE\fR is the default binding for \fBprimary-paste\fR, you first need to unmap the default binding.\& This can be done by setting \fIaction=none\fR; e.\&g.\& \fBprimary-paste=none\fR.\& .PP \fBselection-override-modifiers\fR .RS 4 The modifiers set in this set (which may be set to any combination of modifiers, e.\&g.\& \fImod1+mod2+mod3\fR, as well as \fInone\fR) are used to enable selecting text with the mouse irrespective of whether a client application currently has the mouse grabbed.\& These modifiers cannot be used as modifiers in mouse bindings.\& Because the order of bindings is significant, it is best to set this prior to any other mouse bindings that might use modifiers in the default set.\& Default: \fIShift\fR .PP .RE The actions to which mouse combos can be bound are listed below.\& All actions listed under \fBkey-bindings\fR can be used here as well.\& .PP \fBscrollback-up-mouse\fR .RS 4 Normal screen: scrolls up the contents.\& .PP Alt screen: send fake \fIKeyUP\fR events to the client application, if alternate scroll mode is enabled.\& .PP Default: \fIBTN_BACK\fR .PP .RE \fBscrollback-down-mouse\fR .RS 4 Normal screen: scrolls down the contents.\& .PP Alt screen: send fake \fIKeyDOWN\fR events to the client application, if alternate scroll mode is enabled.\& .PP Default: \fIBTN_FORWARD\fR .PP .RE \fBselect-begin\fR .RS 4 Begin an interactive selection.\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIBTN_LEFT\fR.\& .PP .RE \fBselect-begin-block\fR .RS 4 Begin an interactive block selection.\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIControl+BTN_LEFT\fR.\& .PP .RE \fBselect-word\fR .RS 4 Begin an interactive word-wise selection, where words are separated by whitespace and all characters defined by the \fBword-delimiters\fR option.\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIBTN_LEFT-2\fR.\& .PP .RE \fBselect-word-whitespace\fR .RS 4 Same as \fBselect-word\fR, but the characters in the \fBword-delimiters\fR option are ignored.\& I.\&e only whitespace characters act as delimiters.\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIControl+BTN_LEFT-2\fR.\& .PP .RE \fBselect-quote\fR .RS 4 Begin an interactive "quote" selection.\& This is similar to \fBselect-word\fR, except an entire quote is selected (that is, everything inside the quote, excluding the quote characters).\& Recognized quote characters are: \fB"\fR and \fB'\&\fR.\& .PP If a complete quote cannot be found on the current logical row (only one quote character, or none are found), the entire row is selected.\& .PP The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& .PP After the initial selection has been made, it behaves like a normal word, or row selection, depending on whether a quote was found or not.\& This affects what happens when, for example, extending the selection.\& .PP Notes: .PD 0 .IP \(bu 4 Escaped quote characters are not supported (\fB"foo \e"bar"\fR will match \fB'\&foo \e'\&\fR, not \fB'\&foo "bar'\&\fR).\& .IP \(bu 4 Foot does not try to handle mismatched quote characters; they will simply not match.\& .IP \(bu 4 Nested quotes (using different quote characters) are supported.\& .PD .PP Default: \fIBTN_LEFT-3\fR.\& .PP .RE \fBselect-row\fR .RS 4 Begin an interactive row-wise selection.\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIBTN_LEFT-4\fR.\& .PP .RE \fBselect-extend\fR .RS 4 Interactively extend an existing selection, using the original selection mode (normal, block, word-wise or row-wise).\& The selection is finalized, and copied to the \fIprimary selection\fR, when the button is released.\& Default: \fIBTN_RIGHT\fR.\& .PP .RE \fBselect-extend-character-wise\fR .RS 4 Same as \fBselect-extend\fR, but forces the selection mode to \fInormal\fR (i.\&e.\& character wise).\& Note that this causes subsequent \fBselect-extend\fR operations to be character wise.\& This action is ignored for block selections.\& Default: \fIControl+BTN_RIGHT\fR.\& .PP .RE \fBprimary-paste\fR .RS 4 Pastes from the \fIprimary selection\fR.\& Default: \fIBTN_MIDDLE\fR.\& .PP .RE \fBfont-increase\fR .RS 4 Increases the font size by 0.\&5pt.\& Default: \fIControl+BTN_BACK\fR (also defined in \fBkey-bindings\fR).\& .PP .RE \fBfont-decrease\fR .RS 4 Decreases the font size by 0.\&5pt.\& Default: \fIControl+BTN_FORWARD\fR (also defined in \fBkey-bindings\fR).\& .PP .PP .RE .SH TWEAK .PP This section is for advanced users and describes configuration options that can be used to tweak foot'\&s low-level behavior.\& .PP These options are \fBnot\fR included in the example configuration.\& You should not change these unless you understand what they do.\& .PP Note that these options may change, or be removed at any time, without prior notice.\& .PP When reporting bugs, please mention if, and to what, you have changed any of these options.\& .PP \fBscaling-filter\fR .RS 4 Overrides the default scaling filter used when down-scaling bitmap fonts (e.\&g.\& emoji fonts).\& Possible values are \fBnone\fR, \fBnearest\fR, \fBbilinear\fR, \fBcubic\fR or \fBlanczos3\fR.\& \fBcubic\fR and \fBlanczos3\fR produce the best results, but are slower (with \fBlanczos3\fR being the best \fIand\fR slowest).\& .PP Default: \fIlanczos3\fR.\& .PP .RE \fBoverflowing-glyphs\fR .RS 4 Boolean.\& When enabled, glyphs wider than their cell(s) are allowed to render into one additional neighbouring cell.\& .PP One use case for this are fonts with wide italic characters that "bend" into the next cell.\& Without this option, such glyphs will appear "cut off".\& .PP Another use case are fonts with "icon" characters in the Unicode private usage area, e.\&g.\& Nerd Fonts, or Powerline Fonts and legacy emoji characters like \fBWHITE FROWNING FACE\fR.\& .PP Note: might impact performance depending on the font used.\& Especially small font sizes can cause many overflowing glyphs because of subpixel rendering.\& .PP Default: \fIyes\fR.\& .PP .RE \fBrender-timer\fR .RS 4 Enables a frame rendering timer, that prints the time it takes to render each frame, in microseconds, either on-screen, to stderr, or both.\& Valid values are \fBnone\fR, \fBosd\fR, \fBlog\fR and \fBboth\fR.\& Default: \fInone\fR.\& .PP .RE \fBbox-drawing-base-thickness\fR .RS 4 Line thickness to use for \fBLIGHT\fR box drawing line characters, in points.\& This value is converted to pixels using the monitor'\&s DPI, and then multiplied with the cell size.\& The end result is that a larger font (and thus larger cells) result in thicker lines.\& Default: \fI0.\&04\fR.\& .PP .RE \fBbox-drawing-solid-shades\fR .RS 4 Boolean.\& When enabled, box drawing "shades" (e.\&g.\& LIGHT SHADE, MEDIUM SHADE and DARK SHADE) are rendered as solid blocks using a darker variant of the current foreground color.\& .PP When disabled, they are instead rendered as checker box pattern, using the current foreground color as is.\& .PP Default: \fIyes\fR.\& .PP .RE \fBdelayed-render-lower\fR, \fBdelayed-render-upper\fR .RS 4 These two values control the timeouts (in nanoseconds) that are used to mitigate screen flicker caused by clients writing large, non-atomic screen updates.\& .PP If a client splits up a screen update over multiple \fBwrite\fR(3) calls, we may end up rendering an intermediate frame, quickly followed by another frame with the final screen content.\& For example, the client may erase part of the screen (or scroll) in one write, and then write new content in one or more subsequent writes.\& Rendering the frame when the screen has been erased, but not yet filled with new content will be perceived as screen flicker.\& .PP The \fBreal\fR solution to this is \fIApplication Synchronized Updates\fR (https://gitlab.\&freedesktop.\&org/terminal-wg/specifications/-/merge_requests/2).\& .PP The problem with this is twofold - first, it has not yet been standardized, and thus there are not many terminal emulators that implement it (foot \fBdoes\fR implement it), and second, applications must be patched to use it.\& .PP Until this has happened, foot offers an interim workaround; an attempt to mitigate the screen flicker \fBwithout\fR affecting neither performance nor latency.\& .PP It is based on the fact that the screen is updated at a fixed interval (typically 60Hz).\& For us, this means it does not matter if we render a new frame at the \fBbeginning\fR of a frame interval, or at the \fBend\fR.\& Thus, the goal is to introduce a delay between receiving client data and rendering the resulting state, but without causing a frame skip.\& .PP While it should be possible to estimate the amount of time left until the next frame, foot'\&s algorithm is currently not that advanced, but is based on statistics I guess you could say - the delay we introduce is so small that the risk of pushing the frame over to the next frame interval is also very small.\& .PP Now, that was a lot of text.\& But what is it foot actually does?\& .PP When receiving client data, it schedules a timer, the \fBdelayed-render-lower\fR.\& If we do not receive any more client data before the timer has run out, we render the frame.\& If however, we do receive more data, the timer is re-scheduled.\& That is, each time we receive client data, frame rendering is delayed another \fBdelayed-render-lower\fR nanoseconds.\& .PP Now, while this works very well with most clients, it would be possible to construct a malicious client that keeps writing data at a slow pace.\& To the user, this would look like foot has frozen as we never get to render a new frame.\& To prevent this, an upper limit is set - \fBdelayed-render-upper\fR.\& If this timer runs out, we render the frame regardless of what the client is doing.\& .PP If changing these values, note that the lower timeout \fBmust\fR be set lower than the upper timeout, but that this is not verified by foot.\& Furthermore, both values must be less than 16ms (that is, 16000000 nanoseconds).\& .PP You can disable the feature altogether by setting either value to 0.\& In this case, frames are rendered "as soon as possible".\& .PP Default: lower=\fI500000\fR (0.\&5ms), upper=\fI8333333\fR (8.\&3ms - half a frame interval).\& .PP .RE \fBdamage-whole-window\fR .RS 4 Boolean.\& When enabled, foot will '\&damage'\& the entire window each time a frame has been rendered.\& This forces the compositor to redraw the entire window.\& If disabled, foot will only '\&damage'\& updated rows.\& .PP There is normally \fBno\fR reason to enable this.\& However, it has been seen to workaround an issue with \fIfractional scaling\fR in \fIGnome\fR.\& .PP Note that enabling this option is likely to increase CPU and/or GPU usage (by the compositor, not by foot), and may have a negative impact on battery life.\& .PP Default: \fIno\fR.\& .PP .RE \fBgrapheme-shaping\fR .RS 4 Boolean.\& When enabled, foot will use \fIutf8proc\fR to do grapheme cluster segmentation while parsing "printed" text.\& Then, when rendering, it will use \fIfcft\fR (if compiled with \fIHarfBuzz\fR support) to shape the grapheme clusters.\& .PP This is required to render e.\&g.\& flag (emoji) sequences, keycap sequences, modifier sequences, zero-width-joiner (ZWJ) sequences and emoji tag sequences.\& It might also improve rendering of composed characters, depending on font.\& .PP .RS 4 .PD 0 .IP \(bu 4 foot must have been compiled with utf8proc support .IP \(bu 4 fcft must have been compiled with HarfBuzz support .PD .PP .RE This option can also be set runtime with DECSET/DECRST 2027.\& .PP See also: \fBgrapheme-width-method\fR.\& .PP Default: \fIyes\fR .PP .RE \fBgrapheme-width-method\fR .RS 4 Selects which method to use when calculating the width (i.\&e.\& number of columns) of a grapheme cluster.\& One of \fBwcswidth\fR, \fBdouble-width\fR and \fBmax\fR.\& .PP \fBwcswidth\fR simply adds together the individual width of all codepoints making up the cluster.\& .PP \fBdouble-width\fR does the same, but limits the maximum number of columns to 2.\& This is more correct, but may break some applications since applications typically use \fBwcswidth\fR(3) internally to calculate the width.\& This results in cursor de-synchronization issues.\& .PP \fBmax\fR uses the width of the largest codepoint in the cluster.\& .PP Default: \fIdouble-width\fR .PP .RE \fBfont-monospace-warn\fR .RS 4 Boolean.\& When enabled, foot will use heuristics to try to verify the primary font is a monospace font, and warn if it is not.\& .PP Disable this if you still want to use the font, even if foot thinks it is not monospaced.\& .PP You may also want to disable it to get slightly faster startup times.\& .PP Default: \fIyes\fR .PP .RE \fBmax-shm-pool-size-mb\fR .RS 4 This option controls the amount of virtual address space used by the pixmap memory to which the terminal screen content is rendered.\& .PP It does not change how much physical memory foot uses.\& .PP Foot uses a memory mapping trick to implement fast rendering of interactive scrolling (typically, but applies to "slow" scrolling in general).\& Example: holding down the '\&up'\& or '\&down'\& arrow key to scroll in a text editor.\& .PP For this to work, it needs a large amount of virtual address space.\& Again, note that this is not physical memory.\& .PP On a normal x64 based computer, each process has 128TB of virtual address space, and newer ones have 64PB.\& This is an insane amount and most applications do not use anywhere near that amount.\& .PP Each foot terminal window can allocate up to 2GB of virtual address space.\& With 128TB of address space, that means a maximum of 65536 windows in server/daemon mode (for 2GB).\& That should be enough, yes?\& .PP However, the Wayland compositor also needs to allocate the same amount of virtual address space.\& Thus, it has a slightly higher chance of running out of address space since it needs to host all running Wayland clients in the same way, at the same time.\& .PP In the off chance that this becomes a problem for you, you can reduce the amount used with this option.\& .PP Or, for optimal performance, you can increase it to the maximum allowed value, 2GB (but note that you most likely will not notice any difference compared to the default value).\& .PP Setting it to 0 disables the feature.\& .PP Limitations: .RS 4 .PD 0 .IP \(bu 4 only supported on 64-bit architectures .IP \(bu 4 only supported on Linux .PD .PP .RE Default: \fI512\fR.\& Maximum allowed: \fI2048\fR (2GB).\& .PP .RE \fBsixel\fR .RS 4 Boolean.\& When enabled, foot will process sixel images.\& Default: \fIyes\fR .PP .RE \fBbold-text-in-bright-amount\fR .RS 4 Amount by which bold fonts are brightened when \fBbold-text-in-bright\fR is set to \fByes\fR (the \fBpalette-based\fR variant is not affected by this option).\& Default: \fI1.\&3\fR.\& .PP .RE .SH SEE ALSO .PP \fBfoot\fR(1), \fBfootclient\fR(1)