{ "format": 1, "seat": "node-display-session", "scope": "node", "grain": "whole", "domain": "Core", "decision": "novox/hq ADR 0208, ADR 0687", "verbs": [ { "name": "reload", "description": "Reload the session's configuration in place, keeping its windows.", "input": { "properties": { "force": { "description": "reload even if the configuration on disk has errors (optional)", "type": "boolean" } }, "type": "object" }, "answer": { "properties": { "reloaded": { "description": "whether the reload ran", "type": "boolean" }, "i3": { "description": "the outcome of each command the reload ran, given only once it ran (optional)", "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "error": { "description": "why it failed (optional)", "type": "string" } }, "required": [ "success" ] } }, "errors": { "description": "the configuration's errors on disk, found by the check that ran first", "type": "array", "items": { "type": "object", "properties": { "file": { "description": "the file holding the error (optional)", "type": "string" }, "line": { "description": "the line holding the error (optional)", "type": "number" }, "text": { "type": "string" } }, "required": [ "text" ] } }, "watcher": { "description": "the configuration watcher's status, given only once the reload ran (optional)", "type": "object" }, "why": { "description": "why it did not reload, given only when it did not (optional)", "type": "string" } }, "required": [ "reloaded", "errors" ], "type": "object" } }, { "name": "workspaces", "description": "The session's workspaces: each one's name, output, and whether it is visible or focused.", "input": { "properties": {}, "type": "object" }, "answer": { "properties": { "workspaces": { "type": "array", "items": { "type": "object", "properties": { "num": { "type": "number" }, "name": { "type": "string" }, "output": { "type": "string" }, "visible": { "type": "boolean" }, "focused": { "type": "boolean" }, "urgent": { "type": "boolean" } }, "required": [ "num", "name", "output", "visible", "focused", "urgent" ] } } }, "required": [ "workspaces" ], "type": "object" } }, { "name": "windows", "description": "The session's windows: each one's title, class, workspace and whether it has focus; narrowed to one workspace when named.", "input": { "properties": { "workspace": { "description": "one workspace (optional)", "type": "string" } }, "type": "object" }, "answer": { "properties": { "windows": { "type": "array", "items": { "type": "object", "properties": { "con_id": { "type": "number" }, "window": { "type": "string" }, "class": { "description": "optional", "type": "string" }, "instance": { "description": "optional", "type": "string" }, "role": { "description": "optional", "type": "string" }, "title": { "type": "string" }, "workspace": { "type": "string" }, "output": { "type": "string" }, "focused": { "description": "optional", "type": "boolean" }, "urgent": { "description": "optional", "type": "boolean" }, "floating": { "description": "optional", "type": "boolean" }, "fullscreen": { "description": "optional", "type": "boolean" }, "scratchpad": { "description": "optional", "type": "boolean" }, "marks": { "description": "optional", "type": "array", "items": { "type": "string" } } }, "required": [ "con_id", "window", "title", "workspace", "output" ] } } }, "required": [ "windows" ], "type": "object" } }, { "name": "open", "description": "Open an http or https address in the person's default browser, for any caller over the bus (ADR 0687 §4, ADR 0689 §3): any holder of the display session (i3 or sway) serves it the same way. A holder percent-encodes every character outside RFC 3986's unreserved set (letters, digits, -, ., _, ~) and the separators a URL needs (: / ? # [ ] @ & = + %) as the bytes of its UTF-8 form, and passes the address as one argument: nothing is refused for a character, and no shell reads it. Refused, naming the reason: a scheme other than http or https (named), no scheme (a file path), no host, an address over 2048 bytes once encoded, no graphical session running, no default program for the scheme, or the opener ending with a failure (its status named).", "input": { "properties": { "address": { "description": "the http or https address to open", "type": "string" } }, "required": [ "address" ], "type": "object" }, "answer": { "properties": { "address": { "description": "the address as handed on, encoded", "type": "string" }, "program": { "description": "the desktop entry that opened it, as browser.desktop; given only once the opener started (optional)", "type": "string" }, "command": { "description": "the first word of that entry's command; given only once the opener started (optional)", "type": "string" }, "started": { "description": "opened when the opener ended well within its bound, opening when it still ran at its bound", "type": "string", "enum": [ "opened", "opening" ] } }, "required": [ "address", "started" ], "type": "object" }, "class": "act" } ], "receives": [ { "kind": "config", "comment": "#" } ] }