{
  "$defs": {
    "AccelProfile": {
      "description": "How movement speed affects pointer acceleration.",
      "enum": ["adaptive", "flat"],
      "type": "string"
    },
    "AccentColor": {
      "description": "An sRGB color, written `\"#rrggbb\"`.",
      "pattern": "^#[0-9a-fA-F]{6}$",
      "type": "string"
    },
    "AgentsConfig": {
      "additionalProperties": false,
      "description": "Agents that drive the desktop, such as Claude Code. See\n`docs/AGENTS.md`.",
      "properties": {
        "web": {
          "default": false,
          "description": "Whether agents on the web, such as claude.ai, can reach the desktop\nthrough Domicile's relay: while it is set, the compositor runs\n`domicile mcp --relay`. Each agent still signs in only once the user\nallows it on the desktop, and asks before it uses anything. Off by\ndefault. See\n`docs/AGENTS.md#agents-on-the-web`.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "BrowserConfig": {
      "additionalProperties": false,
      "description": "Browser profiles: sets of sign-ins, site data and extensions, and the\nsites each opens. See `docs/architecture/BROWSER-PROFILES.md`.",
      "properties": {
        "default_private_profile": {
          "default": "private",
          "description": "The profile a new private window opens in. Private.",
          "type": "string"
        },
        "default_profile": {
          "default": "default",
          "description": "The profile a site opens in when `sites` names none. Not private.",
          "type": "string"
        },
        "order": {
          "default": [],
          "description": "The order the shell lists the profiles in, by id. Profiles it leaves\nout follow, by id.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "profiles": {
          "additionalProperties": {
            "$ref": "#/$defs/BrowserProfile"
          },
          "default": {
            "default": {
              "color": "#0d9488",
              "extensions": null,
              "name": "Default",
              "private": false
            },
            "private": {
              "color": "#a78bfa",
              "extensions": null,
              "name": "Private",
              "private": true
            }
          },
          "description": "The profiles, by id. An id is a directory name: lowercase letters,\ndigits and `-`.",
          "type": "object"
        },
        "sites": {
          "additionalProperties": {
            "type": "string"
          },
          "default": {},
          "description": "The profile each site opens in, by site: a host, `*.host` for it and\nits subdomains, or a host and path such as `github.com/acme` for the\naddresses under it. The most specific match wins. A site is never in\n`default_profile`, which opens every unlisted site.",
          "type": "object"
        }
      },
      "type": "object"
    },
    "BrowserProfile": {
      "additionalProperties": false,
      "description": "One browser profile. See [`BrowserConfig::profiles`].",
      "properties": {
        "color": {
          "$ref": "#/$defs/AccentColor",
          "description": "The color the shell marks the profile's pages with."
        },
        "extensions": {
          "default": null,
          "description": "The ids of the extensions it turns on, from those `extensions`\ninstalls; the rest are off, and the shell cannot switch them. Unset\nleaves the switches to the user: each starts on, or off in a private\nprofile, whose pages stay away from extensions unless allowed.",
          "items": {
            "type": "string"
          },
          "type": ["array", "null"]
        },
        "name": {
          "description": "The name the shell shows.",
          "type": "string"
        },
        "private": {
          "default": false,
          "description": "Keeps no history, sign-ins or site data after its last page closes.",
          "type": "boolean"
        }
      },
      "required": ["name", "color"],
      "type": "object"
    },
    "ButtonMap": {
      "description": "Buttons assigned to one-, two- and three-finger taps.",
      "enum": ["lrm", "lmr"],
      "type": "string"
    },
    "ClickMethod": {
      "description": "How a touchpad's physical button chooses a mouse button.",
      "enum": ["default", "clickfinger", "button_areas"],
      "type": "string"
    },
    "Contrast": {
      "description": "How strongly clients set text and edges apart from their background.",
      "enum": ["normal", "high"],
      "type": "string"
    },
    "CursorThemeName": {
      "anyOf": [
        {
          "description": "The same theme in both modes.",
          "type": "string"
        },
        {
          "$ref": "#/$defs/PerModeCursorThemes",
          "description": "A theme for each mode, such as a dark pointer on the light desktop."
        }
      ],
      "description": "An XCursor theme's directory name, such as `Adwaita`, for both modes or\nfor each."
    },
    "DisableWhileTyping": {
      "description": "How typing suppression selects touchpads and handles contacts.",
      "enum": ["enabled", "disabled", "internal", "libinput"],
      "type": "string"
    },
    "DisplayConfig": {
      "additionalProperties": false,
      "description": "One display, described in the config rather than discovered.\n\nA nested compositor has no monitors to enumerate. Each display becomes a\n`wl_output` and a region of the chrome page, which the shell addresses by\n`name`. `position` and `size` are logical units.",
      "properties": {
        "name": {
          "description": "The name the chrome and the compositor use for this display.\n\nMatched exactly, so a name padded with whitespace is rejected.",
          "type": "string"
        },
        "position": {
          "default": [0, 0],
          "description": "The top-left corner in the config's coordinate space.\n\nMay be negative.",
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "format": "int32",
              "type": "integer"
            },
            {
              "format": "int32",
              "type": "integer"
            }
          ],
          "type": "array"
        },
        "scale": {
          "default": 1,
          "description": "The `wl_output` scale for clients on this display.\n\n`output.max_scale` does not apply to described displays.",
          "format": "uint32",
          "minimum": 1,
          "type": "integer"
        },
        "size": {
          "description": "Width and height in logical units. The `wl_output` mode is this times\n`scale`.",
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "format": "uint32",
              "minimum": 1,
              "type": "integer"
            },
            {
              "format": "uint32",
              "minimum": 1,
              "type": "integer"
            }
          ],
          "type": "array"
        }
      },
      "required": ["name", "size"],
      "type": "object"
    },
    "DisplayPlacement": {
      "additionalProperties": false,
      "description": "One display of a profile: which monitor, and what to do with it.\n\nEvery field but `display` defaults to leaving the monitor as it is.",
      "properties": {
        "adaptive_sync": {
          "default": false,
          "description": "Whether to scan out with a variable refresh rate (adaptive sync,\nFreeSync, G-Sync Compatible), so a frame that runs late is shown as\nsoon as it is ready instead of at the next fixed refresh.\n\nOff by default. Asked for only where the monitor, its connector and\nits driver report they can; a driver that refuses it gets the same\nmode without it. Each display reports whether it took.",
          "type": "boolean"
        },
        "display": {
          "description": "The connected display this entry places, matched by exact name.\n\nOn a tty the output name is `drm-<id>`, or the connector (`HDMI-A-1`)\nfor a monitor with no EDID name. Ozone derives the id from the EDID, so\nit survives a replug. A panel name or connector (`DP-1`) also matches.",
          "type": "string"
        },
        "enabled": {
          "default": true,
          "description": "Whether the display is part of the desktop.\n\nA disabled display must still be connected for the profile to match.\nThis lets a profile match a docked laptop and keep windows off its\nclosed lid.",
          "type": "boolean"
        },
        "hdr": {
          "default": false,
          "description": "Whether to drive the monitor in HDR (HDR10: BT.2020 primaries with the\nPQ curve), so HDR video and images reach its full brightness and\ncolor.\n\nOff by default. Asked for only where the monitor's EDID says it takes\nPQ and the connector scans out in 10 bits; elsewhere it stays SDR.",
          "type": "boolean"
        },
        "mode": {
          "default": null,
          "description": "The mode to scan out, in physical pixels. Absent means the monitor's\nnative mode.\n\nApplying the profile fails when the monitor offers no mode of this\nsize. An engine that reports no modes (an older one, or a desktop in a\nwindow) cannot set one, so there it is a check: the profile applies\nonly while the monitor is at this mode.",
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "format": "uint32",
              "minimum": 1,
              "type": "integer"
            },
            {
              "format": "uint32",
              "minimum": 1,
              "type": "integer"
            }
          ],
          "type": ["array", "null"]
        },
        "position": {
          "default": null,
          "description": "The top-left corner in the profile's coordinate space. May be negative.\n\nAbsent puts the display in a row right of the positioned ones, in\nprofile order and level with their top. The row uses logical widths\nand follows each monitor's current mode.",
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "format": "int32",
              "type": "integer"
            },
            {
              "format": "int32",
              "type": "integer"
            }
          ],
          "type": ["array", "null"]
        },
        "refresh": {
          "default": null,
          "description": "The refresh rate to scan out, in Hz, such as `59.94` or `120`. The\nmonitor's advertised rate nearest it is used, at `mode` or else the\nnative size.\n\nAbsent means the native mode's rate when `mode` is absent or the\nnative size, and otherwise the highest rate the monitor offers at\n`mode`, as sway picks.",
          "exclusiveMinimum": 0.0,
          "format": "double",
          "maximum": 2147483.647,
          "type": ["number", "null"]
        },
        "scale": {
          "default": 1.0,
          "description": "Device pixels per logical pixel.\n\nFractional, because real scales are: 1.5 on a 2880x1920 panel gives a\n1920x1280 desktop. This differs from the integer `wl_output.scale`; the\ncompositor's `Screens` advertises that, and `xdg_output` carries the\nlogical size.",
          "exclusiveMinimum": 0.0,
          "format": "double",
          "type": "number"
        },
        "sdr_white": {
          "default": null,
          "description": "In HDR, how bright ordinary (SDR) content's white is, in cd/m² (nits).\nRaise it if SDR windows look dim beside the monitor in SDR.\n\nAbsent is 203, the reference white of ITU-R BT.2408. Ignored in SDR.",
          "format": "uint32",
          "maximum": 10000,
          "minimum": 1,
          "type": ["integer", "null"]
        },
        "transform": {
          "$ref": "#/$defs/Transform",
          "default": "normal",
          "description": "Which way up the monitor is."
        }
      },
      "required": ["display"],
      "type": "object"
    },
    "ElectronConfig": {
      "additionalProperties": false,
      "description": "Installed Electron apps that run on the desktop's engine instead of the\nElectron they ship. See `docs/architecture/ELECTRON-APPS.md`.",
      "properties": {
        "apps": {
          "default": [],
          "description": "Desktop file ids, as `slack.desktop`. Whatever starts one of these\nentries (the launcher, a link, a notification) runs it with\n`domicile open --electron`. An app the engine can't run yet runs on\nits own Electron, with a notification saying so.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ExtensionSettings": {
      "additionalProperties": false,
      "description": "One extension's settings. See [`ExtensionsConfig::settings`].",
      "properties": {
        "file_access": {
          "default": null,
          "description": "Runs on local files (`file://` pages). Chrome's default is no.",
          "type": ["boolean", "null"]
        },
        "site_access": {
          "anyOf": [
            {
              "$ref": "#/$defs/SiteAccess"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Which of the sites it asks for it runs on. Chrome's default is all."
        },
        "user_scripts": {
          "default": null,
          "description": "May run the user scripts you add to it (`chrome.userScripts`), as\nuserscript managers do. Chrome's default is no.",
          "type": ["boolean", "null"]
        }
      },
      "type": "object"
    },
    "ExtensionsConfig": {
      "additionalProperties": false,
      "description": "Chrome extensions the engine installs into the browser windows' profile.\nSee `docs/architecture/EXTENSIONS.md`.\n\nListing an extension is consent: there is no install prompt. Removing one\nfrom the list uninstalls it.",
      "properties": {
        "settings": {
          "additionalProperties": {
            "$ref": "#/$defs/ExtensionSettings"
          },
          "default": {},
          "description": "Each extension's settings, by id, as chrome://extensions has them. A\nsetting left out is the user's to change in the Settings app; one\nremoved from here goes back to Chrome's default.",
          "type": "object"
        },
        "unpacked": {
          "default": [],
          "description": "Directories holding an unpacked extension, loaded as they are.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "web_store": {
          "default": [],
          "description": "Chrome Web Store ids, installed from the Store and updated from it.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "FilesConfig": {
      "additionalProperties": false,
      "description": "What the file index is built from.",
      "properties": {
        "omit": {
          "$ref": "#/$defs/FilesOmit",
          "default": ["**/.*"]
        }
      },
      "type": "object"
    },
    "FilesOmit": {
      "description": "The paths the file index leaves out, and everything under them.\n\nPatterns follow gitignore's rules:\n- Each is a glob over a path relative to the home. `*` stops at `/`; `**`\n  does not.\n- A pattern starting with `!` takes a path back.\n- The last matching pattern wins.\n- An omitted directory is not walked, so nothing under it can be taken\n  back.\n\nThe default is `**/.*`, which omits hidden paths. A configured list\nreplaces the default.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "IdleConfig": {
      "additionalProperties": false,
      "description": "When an idle desktop turns its screens off, and when it locks.\n\nAbsent means neither, and that is the default: a blank screen looks like a\ncrash, so a shell must opt in. The two timeouts run on separate clocks\nfrom the same input and inhibitors, so either may be the shorter. See\n`docs/IDLE.md`.\n\nThe unit is in the key name because a generator writes this file.",
      "properties": {
        "blank_after_seconds": {
          "default": null,
          "description": "Seconds without input before the screens go dark.\n\nAbsent means never. Zero is refused.",
          "format": "uint64",
          "minimum": 1,
          "type": ["integer", "null"]
        },
        "lock_after_seconds": {
          "default": null,
          "description": "Seconds without input before the desktop locks.\n\nAbsent means the desktop locks only when its shell asks. Zero is\nrefused.",
          "format": "uint64",
          "minimum": 1,
          "type": ["integer", "null"]
        }
      },
      "type": "object"
    },
    "InputConfig": {
      "additionalProperties": false,
      "description": "Input-device settings.",
      "properties": {
        "keyboard": {
          "$ref": "#/$defs/KeyboardConfig",
          "default": {
            "keymaps": [],
            "repeat": {
              "delay_ms": 500,
              "rate": 25
            },
            "xkb_layout": "us",
            "xkb_model": "",
            "xkb_options": [],
            "xkb_rules": "",
            "xkb_variant": ""
          }
        },
        "mouse": {
          "$ref": "#/$defs/MouseConfig",
          "default": {
            "accel_profile": "adaptive",
            "middle_emulation": false,
            "natural_scroll": false,
            "scroll_factor": 1.0,
            "speed": 0.0
          }
        },
        "pointers": {
          "default": [],
          "description": "Tablets and touchscreens, each bound to the display it covers.\n\nRead on a tty only, on every hotplug. An unbound one covers no\ndisplay. See `docs/DISPLAYS.md#tablets-and-touchscreens`.",
          "items": {
            "$ref": "#/$defs/PointerConfig"
          },
          "type": "array"
        },
        "touchpad": {
          "$ref": "#/$defs/TouchpadConfig",
          "default": {
            "accel_profile": "adaptive",
            "click_method": "default",
            "disable_while_typing": "enabled",
            "drag_lock": false,
            "middle_emulation": false,
            "natural_scroll": false,
            "scroll_acceleration": true,
            "scroll_factor": 1.0,
            "scroll_method": "default",
            "speed": 0.0,
            "tap": true,
            "tap_button_map": "lrm",
            "tap_drag": true,
            "typing_pause_ms": 200,
            "typing_repeat_pause_ms": 500
          }
        }
      },
      "type": "object"
    },
    "KeyboardConfig": {
      "additionalProperties": false,
      "description": "Keyboard settings, named after SwayWM's `xkb_*` options.\n\nThe string fields go to xkb verbatim, so sway's multi-layout form\n(`xkb_layout = \"us,de\"`) works. Empty `xkb_rules` and `xkb_model` use the\nlibxkbcommon defaults. The default layout is `us`.\n\nTo switch between layouts, list them in `keymaps` instead.",
      "properties": {
        "keymaps": {
          "default": [],
          "description": "Keymaps to switch between, the first the one the desktop starts on.\n\nEach is a whole keymap: an entry's unset fields take the defaults, not\nthe fields above, which must stay unset. The shell switches with\n`keymap next` or `keymap <name>`. See `docs/SHELL-CONFIG.md`.",
          "items": {
            "$ref": "#/$defs/Keymap"
          },
          "type": "array"
        },
        "repeat": {
          "$ref": "#/$defs/KeyRepeat",
          "default": {
            "delay_ms": 500,
            "rate": 25
          },
          "description": "How a held key repeats, in native windows and in pages."
        },
        "xkb_layout": {
          "default": "us",
          "type": "string"
        },
        "xkb_model": {
          "default": "",
          "type": "string"
        },
        "xkb_options": {
          "default": [],
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "xkb_rules": {
          "default": "",
          "type": "string"
        },
        "xkb_variant": {
          "default": "",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Keymap": {
      "additionalProperties": false,
      "description": "One keymap the desktop can switch to, in `input.keyboard.keymaps`.\n\nThe `xkb_*` fields are as in `input.keyboard`, with the same defaults.",
      "properties": {
        "name": {
          "default": "",
          "description": "What the shell shows and `keymap <name>` selects, such as `dvp`.\n\nUnique, and not `next`.",
          "type": "string"
        },
        "xkb_layout": {
          "default": "us",
          "type": "string"
        },
        "xkb_model": {
          "default": "",
          "type": "string"
        },
        "xkb_options": {
          "default": [],
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "xkb_rules": {
          "default": "",
          "type": "string"
        },
        "xkb_variant": {
          "default": "",
          "type": "string"
        }
      },
      "type": "object"
    },
    "KeyRepeat": {
      "additionalProperties": false,
      "description": "How a held key repeats.",
      "properties": {
        "delay_ms": {
          "default": 500,
          "description": "Milliseconds a key is held before it repeats.",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "rate": {
          "default": 25,
          "description": "Repeats a second. 0 turns repeat off.",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "LockConfig": {
      "additionalProperties": false,
      "description": "What unlocks this desk: the user's password, checked by PAM.\n\nIf `/etc/pam.d` lacks the service, the desk does not lock, since nothing\ncould unlock it, until the file is added. See `docs/LOCK.md#verifiers`.",
      "properties": {
        "pam_service": {
          "default": null,
          "description": "The PAM service the desk's user authenticates against.\n\nAbsent means `\"domicile\"`, which the NixOS module and the distribution\npackages declare.",
          "type": ["string", "null"]
        }
      },
      "type": "object"
    },
    "LockdownConfig": {
      "additionalProperties": false,
      "description": "What applications are told not to do, through the\n`org.freedesktop.impl.portal.Lockdown` portal. Every switch defaults to\noff.\n\nApplications enforce these themselves; the compositor only reports them.\nSee `docs/SHELL-CONFIG.md#lockdown`.",
      "properties": {
        "disable_application_handlers": {
          "default": false,
          "type": "boolean"
        },
        "disable_camera": {
          "default": false,
          "type": "boolean"
        },
        "disable_location": {
          "default": false,
          "type": "boolean"
        },
        "disable_microphone": {
          "default": false,
          "type": "boolean"
        },
        "disable_printing": {
          "default": false,
          "type": "boolean"
        },
        "disable_save_to_disk": {
          "default": false,
          "type": "boolean"
        },
        "disable_sound_output": {
          "default": false,
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "MouseConfig": {
      "additionalProperties": false,
      "description": "Settings applied to every relative mouse on a tty.",
      "properties": {
        "accel_profile": {
          "$ref": "#/$defs/AccelProfile",
          "default": "adaptive"
        },
        "middle_emulation": {
          "default": false,
          "description": "Emulate a middle click by pressing left and right together.",
          "type": "boolean"
        },
        "natural_scroll": {
          "default": false,
          "description": "Reverse the mouse wheel's scrolling direction.",
          "type": "boolean"
        },
        "scroll_factor": {
          "default": 1.0,
          "description": "Multiplier applied once to both scrolling axes; must be positive.",
          "exclusiveMinimum": 0.0,
          "type": "number"
        },
        "speed": {
          "default": 0.0,
          "description": "Pointer acceleration speed, from -1 to 1.",
          "format": "double",
          "maximum": 1.0,
          "minimum": -1.0,
          "type": "number"
        }
      },
      "type": "object"
    },
    "OutputConfig": {
      "additionalProperties": false,
      "description": "Output settings.",
      "properties": {
        "displays": {
          "default": [],
          "description": "The displays that make up the desktop.\n\nEmpty means one output sized to Domicile's own window.",
          "items": {
            "$ref": "#/$defs/DisplayConfig"
          },
          "type": "array"
        },
        "max_scale": {
          "default": 2,
          "description": "The highest `wl_output` scale to advertise.\n\nLimits cost: a client at scale N renders N² times the pixels. `1` turns\nscaling off. Applies only while `displays` is empty.",
          "format": "uint32",
          "minimum": 1,
          "type": "integer"
        },
        "profiles": {
          "default": [],
          "description": "Placements for real monitors, matched against what is connected.\n\nRe-read on every hotplug. Empty leaves the monitors where the engine\nplaced them. See `docs/DISPLAYS.md#profiles`.",
          "items": {
            "$ref": "#/$defs/Profile"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "PerModeCursorThemes": {
      "additionalProperties": false,
      "description": "A cursor theme's directory name for each mode.",
      "properties": {
        "dark": {
          "type": "string"
        },
        "light": {
          "type": "string"
        }
      },
      "required": ["dark", "light"],
      "type": "object"
    },
    "PointerConfig": {
      "additionalProperties": false,
      "description": "A tablet or touchscreen, and the display it covers.",
      "properties": {
        "device": {
          "description": "The device's evdev name or `phys`, matched exactly.\n\nA name every device of a kind shares, such as `QEMU QEMU USB Tablet`,\nbinds all of them; `phys` (`usb-0000:00:04.0-1/input0`) tells them\napart. `udevadm info /dev/input/eventN` prints both.",
          "type": "string"
        },
        "display": {
          "description": "The display the device covers, named as a profile's `display` is.",
          "type": "string"
        }
      },
      "required": ["device", "display"],
      "type": "object"
    },
    "Profile": {
      "additionalProperties": false,
      "description": "One arrangement of monitors, and where each goes.\n\nApplies when the displays it names are exactly the connected ones.",
      "properties": {
        "displays": {
          "description": "Every display this arrangement is for, including the ones it turns off.",
          "items": {
            "$ref": "#/$defs/DisplayPlacement"
          },
          "type": "array"
        },
        "name": {
          "description": "The profile's name, unique in the config. The log prints it when the\nprofile applies.",
          "type": "string"
        }
      },
      "required": ["name", "displays"],
      "type": "object"
    },
    "ScrollMethod": {
      "description": "How a touchpad generates scrolling.",
      "enum": ["default", "two_finger", "edge", "on_button_down"],
      "type": "string"
    },
    "SiteAccess": {
      "anyOf": [
        {
          "$ref": "#/$defs/SiteAccessMode"
        },
        {
          "description": "Only these hosts, on http and https.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ],
      "description": "Which sites an extension runs on: `\"on_click\"`, `\"all_sites\"`, or a list\nof hosts, each also as `*.host` for its subdomains."
    },
    "SiteAccessMode": {
      "description": "[`SiteAccess`] other than a list of hosts.",
      "oneOf": [
        {
          "const": "on_click",
          "description": "Only on a page where you click its button.",
          "type": "string"
        },
        {
          "const": "all_sites",
          "description": "On every site it asks for.",
          "type": "string"
        }
      ]
    },
    "SpellcheckConfig": {
      "additionalProperties": false,
      "description": "Spell checking in pages: in browser windows, web apps and Electron apps.",
      "properties": {
        "enabled": {
          "default": true,
          "description": "Underlines misspelled words in text fields and suggests corrections.",
          "type": "boolean"
        },
        "languages": {
          "default": ["en-US"],
          "description": "The languages words are checked in, as language tags such as `en-US`.\nA word spelled right in any of them passes.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "StartupConfig": {
      "additionalProperties": false,
      "description": "The commands a desk starts with.\n\nRun once, when the compositor starts. A reload does not rerun them, which\nwould start duplicates, or stop them, which would kill programs in use.",
      "properties": {
        "commands": {
          "default": [],
          "description": "Each an argv, run without a shell. For shell syntax, use\n`[\"sh\", \"-c\", \"…\"]`.",
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ThemeConfig": {
      "additionalProperties": false,
      "description": "How the desktop is themed.\n\nClients read every field but `mode` through the settings portal; see the\ncompositor's `portals::settings`.",
      "properties": {
        "accent_color": {
          "anyOf": [
            {
              "$ref": "#/$defs/AccentColor"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The color clients highlight with, or their own when unset."
        },
        "contrast": {
          "$ref": "#/$defs/Contrast",
          "default": "normal"
        },
        "cursor_hide_after_ms": {
          "default": null,
          "description": "Hides the engine's pointer after this many milliseconds without\npointer input. Unset never hides it. Zero is refused.",
          "format": "uint32",
          "minimum": 1,
          "type": ["integer", "null"]
        },
        "cursor_hide_when_typing": {
          "default": false,
          "description": "Hides the engine's pointer on a typing key press, until the pointer is\nnext used.",
          "type": "boolean"
        },
        "cursor_size": {
          "default": null,
          "description": "The cursor size in logical pixels, for clients and the engine's\npointer. Unset leaves clients their own. Zero is refused.",
          "format": "uint16",
          "maximum": 65535,
          "minimum": 1,
          "type": ["integer", "null"]
        },
        "cursor_theme": {
          "anyOf": [
            {
              "$ref": "#/$defs/CursorThemeName"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The XCursor theme for clients and the engine's pointer, in both modes\nor one per mode. Unset leaves clients their own."
        },
        "font_name": {
          "default": null,
          "description": "The interface font as a Pango description, such as `Inter 11`. Unset\nleaves clients their own.",
          "type": ["string", "null"]
        },
        "force_dark": {
          "default": [],
          "description": "Host names of sites the browser draws dark while the theme is dark,\nfor sites with no dark theme of their own. A host covers its\nsubdomains.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "icon_theme": {
          "default": null,
          "description": "The freedesktop icon theme's directory name, such as `Papirus-Dark`.\nUnset leaves shells with `hicolor`.",
          "type": ["string", "null"]
        },
        "mode": {
          "$ref": "#/$defs/ThemeMode",
          "default": "dark"
        },
        "monospace_font_name": {
          "default": null,
          "description": "The fixed-width font as a Pango description, such as `Iosevka 12`.\nUnset leaves clients their own.",
          "type": ["string", "null"]
        },
        "reduced_motion": {
          "default": false,
          "description": "Asks clients to keep animation to a minimum.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ThemeMode": {
      "description": "Whether the desktop is drawn dark or light.\n\nThere is no \"follow the system\" option: the chrome is the system, so there\nis nothing to follow. Clients follow this value through the settings\nportal; see the compositor's `portals::settings`.",
      "oneOf": [
        {
          "const": "dark",
          "description": "Light text on a dark background, which the chrome is designed for.",
          "type": "string"
        },
        {
          "const": "light",
          "description": "Dark text on a light background.",
          "type": "string"
        }
      ]
    },
    "TouchpadConfig": {
      "additionalProperties": false,
      "description": "Settings applied to every touchpad on a tty, including newly attached ones.",
      "properties": {
        "accel_profile": {
          "$ref": "#/$defs/AccelProfile",
          "default": "adaptive"
        },
        "click_method": {
          "$ref": "#/$defs/ClickMethod",
          "default": "default",
          "description": "Physical click behavior; `default` uses the device's libinput default.\nClickfinger uses left, right and middle for one, two and three fingers."
        },
        "disable_while_typing": {
          "$ref": "#/$defs/DisableWhileTyping",
          "default": "enabled",
          "description": "Typing suppression policy; `libinput` preserves native keyboard pairing and contacts.\nCustom `internal` excludes external pads; `enabled` includes every touchpad."
        },
        "drag_lock": {
          "default": false,
          "description": "Keep a tap drag held when the fingers lift briefly.",
          "type": "boolean"
        },
        "middle_emulation": {
          "default": false,
          "description": "Emulate a middle click by pressing left and right together.",
          "type": "boolean"
        },
        "natural_scroll": {
          "default": false,
          "description": "Move content in the direction the fingers move.",
          "type": "boolean"
        },
        "scroll_acceleration": {
          "default": true,
          "description": "Increase page scroll distance with gesture speed, up to four times.",
          "type": "boolean"
        },
        "scroll_factor": {
          "default": 1.0,
          "description": "Multiplier applied once to both scrolling axes; must be positive.",
          "exclusiveMinimum": 0.0,
          "type": "number"
        },
        "scroll_method": {
          "$ref": "#/$defs/ScrollMethod",
          "default": "default",
          "description": "Scrolling gesture; `default` uses the device's libinput default."
        },
        "speed": {
          "default": 0.0,
          "description": "Pointer acceleration speed, from -1 to 1.",
          "format": "double",
          "maximum": 1.0,
          "minimum": -1.0,
          "type": "number"
        },
        "tap": {
          "default": true,
          "description": "Tap to click.",
          "type": "boolean"
        },
        "tap_button_map": {
          "$ref": "#/$defs/ButtonMap",
          "default": "lrm",
          "description": "Buttons for one-, two- and three-finger taps."
        },
        "tap_drag": {
          "default": true,
          "description": "Drag by tapping, then holding a second tap.",
          "type": "boolean"
        },
        "typing_pause_ms": {
          "default": 200,
          "description": "Custom pause after one typing key; zero means no pause.\nNative `libinput` mode requires the default 200 and uses its own timers.",
          "format": "uint32",
          "maximum": 2147483647,
          "minimum": 0,
          "type": "integer"
        },
        "typing_repeat_pause_ms": {
          "default": 500,
          "description": "Custom pause during continued typing; zero means no pause.\nNative `libinput` mode requires the default 500 and uses its own timers.",
          "format": "uint32",
          "maximum": 2147483647,
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "Transform": {
      "description": "Which way up a monitor is, named for the matching `wl_output.transform`.\n\nRotations only; nothing needs flips.",
      "oneOf": [
        {
          "const": "normal",
          "description": "The connector's native orientation.",
          "type": "string"
        },
        {
          "const": "rotate-90",
          "description": "Content turned a quarter counterclockwise.",
          "type": "string"
        },
        {
          "const": "rotate-180",
          "description": "Content turned upside down.",
          "type": "string"
        },
        {
          "const": "rotate-270",
          "description": "Content turned a quarter clockwise, for a panel standing on its left\nside.",
          "type": "string"
        }
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "The full compositor configuration.",
  "properties": {
    "$schema": {
      "default": null,
      "description": "Where editors find this file's JSON Schema. Domicile ignores it.",
      "type": ["string", "null"]
    },
    "agents": {
      "$ref": "#/$defs/AgentsConfig",
      "default": {
        "web": false
      }
    },
    "browser": {
      "$ref": "#/$defs/BrowserConfig",
      "default": {
        "default_private_profile": "private",
        "default_profile": "default",
        "order": [],
        "profiles": {
          "default": {
            "color": "#0d9488",
            "extensions": null,
            "name": "Default",
            "private": false
          },
          "private": {
            "color": "#a78bfa",
            "extensions": null,
            "name": "Private",
            "private": true
          }
        },
        "sites": {}
      }
    },
    "electron": {
      "$ref": "#/$defs/ElectronConfig",
      "default": {
        "apps": []
      }
    },
    "extensions": {
      "$ref": "#/$defs/ExtensionsConfig",
      "default": {
        "settings": {},
        "unpacked": [],
        "web_store": []
      }
    },
    "files": {
      "$ref": "#/$defs/FilesConfig",
      "default": {
        "omit": ["**/.*"]
      }
    },
    "idle": {
      "$ref": "#/$defs/IdleConfig",
      "default": {
        "blank_after_seconds": null,
        "lock_after_seconds": null
      }
    },
    "input": {
      "$ref": "#/$defs/InputConfig",
      "default": {
        "keyboard": {
          "keymaps": [],
          "repeat": {
            "delay_ms": 500,
            "rate": 25
          },
          "xkb_layout": "us",
          "xkb_model": "",
          "xkb_options": [],
          "xkb_rules": "",
          "xkb_variant": ""
        },
        "mouse": {
          "accel_profile": "adaptive",
          "middle_emulation": false,
          "natural_scroll": false,
          "scroll_factor": 1.0,
          "speed": 0.0
        },
        "pointers": [],
        "touchpad": {
          "accel_profile": "adaptive",
          "click_method": "default",
          "disable_while_typing": "enabled",
          "drag_lock": false,
          "middle_emulation": false,
          "natural_scroll": false,
          "scroll_acceleration": true,
          "scroll_factor": 1.0,
          "scroll_method": "default",
          "speed": 0.0,
          "tap": true,
          "tap_button_map": "lrm",
          "tap_drag": true,
          "typing_pause_ms": 200,
          "typing_repeat_pause_ms": 500
        }
      }
    },
    "lock": {
      "$ref": "#/$defs/LockConfig",
      "default": {
        "pam_service": null
      }
    },
    "lockdown": {
      "$ref": "#/$defs/LockdownConfig",
      "default": {
        "disable_application_handlers": false,
        "disable_camera": false,
        "disable_location": false,
        "disable_microphone": false,
        "disable_printing": false,
        "disable_save_to_disk": false,
        "disable_sound_output": false
      }
    },
    "output": {
      "$ref": "#/$defs/OutputConfig",
      "default": {
        "displays": [],
        "max_scale": 2,
        "profiles": []
      }
    },
    "shell": {
      "default": null,
      "description": "The shell `domicile` runs when given none: a path or a package, as\n`domicile load-shell` takes. The compositor ignores it.",
      "type": ["string", "null"]
    },
    "shell_options": {
      "additionalProperties": true,
      "default": {},
      "description": "The values of the options the shell declares, by key. The compositor\nsends them to the shell without reading them. See\n`docs/WRITING-A-SHELL.md#options`.",
      "type": "object"
    },
    "spellcheck": {
      "$ref": "#/$defs/SpellcheckConfig",
      "default": {
        "enabled": true,
        "languages": ["en-US"]
      }
    },
    "startup": {
      "$ref": "#/$defs/StartupConfig",
      "default": {
        "commands": []
      }
    },
    "terminal": {
      "default": null,
      "description": "The terminal applications such as htop and vim run in\n(`Terminal=true` in their desktop entries): its argv, which the\napplication's own follows, as `[\"kitty\", \"--\"]` or `[\"foot\"]`. The\nlauncher and `domicile open` offer such applications only when it is\nset, and a shell's terminal key opens it. Unset, there is no terminal.",
      "items": {
        "type": "string"
      },
      "type": ["array", "null"]
    },
    "theme": {
      "$ref": "#/$defs/ThemeConfig",
      "default": {
        "accent_color": null,
        "contrast": "normal",
        "cursor_hide_after_ms": null,
        "cursor_hide_when_typing": false,
        "cursor_size": null,
        "cursor_theme": null,
        "font_name": null,
        "force_dark": [],
        "icon_theme": null,
        "mode": "dark",
        "monospace_font_name": null,
        "reduced_motion": false
      }
    }
  },
  "title": "Config",
  "type": "object"
}
