Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Reference

Comprehensive reference documentation for Two-Face.

Quick Access

ReferenceDescription
CLI OptionsCommand line flags
Config SchemaComplete configuration reference
Keybind ActionsAll keybind actions A-Z
Parsed ElementsAll ParsedElement variants
Stream IDsAll stream identifiers
Preset ColorsNamed color presets
Environment VariablesEnvironment configuration
Default FilesDefault configuration contents

How to Use This Section

This reference section is designed for lookup, not learning. Use it when you:

  • Need exact syntax for a configuration option
  • Want to know all available values for a setting
  • Need to look up a specific color name or stream ID
  • Are troubleshooting a configuration issue

For learning and tutorials, see:

Quick Reference Cards

Common CLI Flags

two-face --host HOST --port PORT    # Lich mode
two-face --direct --account X ...   # Direct mode
two-face --config PATH              # Custom config
two-face --debug                    # Debug logging

Essential Config Keys

[connection]
mode = "lich"           # or "direct"
host = "127.0.0.1"
port = 8000

[[widgets]]
type = "text"           # Widget type
name = "main"           # Unique name
x = 0                   # Position (0-100)
y = 0
width = 100             # Size (0-100)
height = 100

Common Keybind Actions

[keybinds."key"]
action = "scroll_up"        # Widget action
macro = "command"           # Send command

Stream Quick Reference

StreamContent
mainPrimary game output
roomRoom descriptions
combatCombat messages
speechPlayer speech
thoughtsESP/thoughts
whisperWhispers

Conventions

Value Types

TypeExampleDescription
string"value"Text in quotes
integer100Whole number
float1.5Decimal number
booleantruetrue or false
array["a", "b"]List of values

Color Values

Colors can be specified as:

  • Preset name: "red", "bright_blue"
  • Hex code: "#ff0000"
  • RGB: (in some contexts)

Path Values

Paths support:

  • Absolute: /home/user/.two-face/
  • Home expansion: ~/.two-face/
  • Relative (from config location)

See Also