Skip to content

The command line

tesserae-shell is one command with sub-commands. With no sub-command it runs the shell (run). python -m tess_shell is the same command.

tesserae-shell [OPTIONS] COMMAND [ARGUMENTS]

The commands fall into three groups:

  • Files and installation, which need no running shell: run, check, version, schema, migrate, install-session, and the kwin commands.
  • Control commands, which talk to a running shell over the session bus: reload, quit, status, show, hide, toggle, leave-shortcut-mode, call and log-level. They import only the standard library and a small D-Bus client, so they start fast enough to be bound to a key.
  • run itself, the shell.

Options and commands

These options are accepted by every command, before or after its name:

Option What it does
--config-dir PATH configuration directory
--json machine readable output
--quiet only warnings and errors
--timeout SECONDS how long a control command waits for the shell (default 5)

The commands, with the arguments and options each adds:

Command Its own arguments and options What it does
tesserae-shell run none start the shell (default)
tesserae-shell migrate --check --force bring the configuration files to the current format (--check lists what would change)
tesserae-shell check --strict --import-modules validate settings and shell files
tesserae-shell version none print versions
tesserae-shell schema --out FILE print the schema of the shell's files as JSON (with --json)
tesserae-shell install-session --print --enable --remove --force write the desktop file and the systemd user unit (--enable, --remove, --print)
tesserae-shell reload none reload the running shell and report the errors
tesserae-shell quit none stop the running shell
tesserae-shell status none show the running shell's state (--json: the shell's own JSON)
tesserae-shell show name show a Panel or a Frame by its Name
tesserae-shell hide name hide a Panel or a Frame by its Name
tesserae-shell toggle name toggle a Panel or a Frame by its Name
tesserae-shell leave-shortcut-mode none leave shortcut mode (the way out whatever window has the keyboard)
tesserae-shell call module action [args ...] call a module's @action (each ARG a JSON value, or text)
tesserae-shell log-level level change the log level until the next reload of settings.tdl
tesserae-shell kwin a group KWin helpers: the script and the window rule (no shell needs to run)
tesserae-shell kwin script a group the shell's KWin script, installed for KWin to run from login (mode P)
tesserae-shell kwin script install --kwinrc PATH --scripts-dir PATH --no-reload copy the script to KWin's scripts folder and enable it in kwinrc
tesserae-shell kwin script remove --kwinrc PATH --scripts-dir PATH --no-reload take the script and its kwinrc switch away
tesserae-shell kwin script status --kwinrc PATH --scripts-dir PATH report the package, the kwinrc switch and whether KWin has it loaded
tesserae-shell kwin rule a group the one window rule that keeps the shell's surfaces above Plasma panels (opt-in)
tesserae-shell kwin rule show --rules-file PATH print the rule group the shell would write to kwinrulesrc
tesserae-shell kwin rule install --rules-file PATH --no-reload --yes write that group (shows it and asks first, or takes --yes)
tesserae-shell kwin rule remove --rules-file PATH --no-reload take exactly that group out of kwinrulesrc

The full --help of the program and of each command are at the end of this page.

The commands in detail

run

Starts the shell and keeps running in the foreground. It stops cleanly on SIGTERM or SIGINT (Ctrl+C) or on tesserae-shell quit; a second signal makes it leave at once with exit code 130. It needs a Wayland compositor with layer-shell and a usable XDG_RUNTIME_DIR. Under systemd it tells the manager when it is ready and when it is stopping, and, when the unit has a watchdog, keeps telling it that the loop is alive. If the Wayland connection is lost (the compositor went away) it stops what it runs and exits with code 69. While it runs it keeps a record of crashes in $XDG_STATE_HOME/tesserae-shell (when the shell hangs or crashes). See Install and start.

check

Validates settings.tdl and every shell, module, style, theme and stylesheet file in the configuration folder, without a compositor, and creates nothing:

ok: 3 files checked

or, for each finding, the file, line and column, the severity, the message, the offending line with a caret and a hint (see hot reload for an example). It counts only your own files. A finding is an error (exit code 1) or a warning, which is printed but does not fail the check. At most 50 findings are printed, then ... and N more. --quiet leaves out the ok: line.

--strict makes a warning fail the check too: the warnings are printed and the exit code is 1 (for a script or a git hook that wants a folder with no insecure-permissions or image-not-found).

If settings.tdl has an error, check stops there and reports only that.

With --json it prints one object:

{"ok": true, "config_dir": "...", "files": 3, "errors": [], "omitted": 0}

Each entry of errors (warnings are in the list too) has file, line, column, severity, rule, message and hint. Exit codes: 0 no errors, 1 errors (or, with --strict, warnings), 2 the configuration folder does not exist.

check proves a file is valid, which includes that every key, module parameter and theme token named in it exists. It does not contact the desktop, so it cannot tell you that a Call names an action a module lacks (that is reported when the shell starts or reloads) or that a monitor name exists. It reads the Python of your own modules without running it (module-import for a file that does not parse, module-classes for none or more than one class extending Module, module-no-python for a missing file). --import-modules also imports each of your modules in a throwaway process, one at a time and 5 seconds each, for what only running the file finds (an ImportError, an exception at the top of the file or in __init__: module-import, module-init); that runs the top-level code of your modules, which is why it is asked for. The modules that ship with the shell are never read this way.

version

Prints the versions of the shell, tess_re, tess_el, tess_dl and Python. --json prints them as one object with the folder the shell would read as config_dir.

schema

tesserae-shell schema --json prints everything the loader accepts, as JSON: every block, surface, key, kind, choice, default, event, action, theme token and settings.tdl key, each with a line of documentation, so a configuration tool can build its forms. --out FILE writes it to a file instead. It is the data this guide's tables are generated from. Without --json the command answers schema writes JSON only; add --json and exits 1.

migrate

tesserae-shell migrate [--config-dir DIR] [--check] [--json] [--force]

Brings your files to the current format after an upgrade. It reads every .tdl file under the configuration folder (and the other folders settings.tdl names, when it can read it) and never the registry, and applies an ordered list of numbered steps, each of which rewrites text only and does nothing to a file that is already at its target. Step 0001 is TDL 0.1 to 0.2: a slot written {{ expression }} becomes <| expression |> and TDL: 0.1 becomes TDL: 0.2; no other byte changes (comments, layout, line endings, quoted text that looks like a slot). A slot whose text holds |> outside a quote cannot be written in the new form: it is reported and the whole file is left as it was. Step 0002 writes a deprecated key or block under its new name (nothing is deprecated yet).

  • --check changes nothing and exits 1 if any file would change.
  • Before it writes, the originals are copied to <config>/.migrate-backup/<timestamp>/ with their relative paths; nothing is deleted. Each file is replaced through a temporary file and a rename, so a file is either as it was or fully migrated. If a run is interrupted the backup holds every original, and a second run is safe.
  • It prints each file changed and the step applied, then a summary, then the verdict of check on the result. --json prints {"ok", "config_dir", "check", "steps": [{"step", "from", "to", "files": [{"path", "state"}]}], "skipped": [...], "backup", "result"}; state is changed or would-change, and result is the check --json object after the rewrite (null when nothing was written).
  • It refuses to run while a shell holds the instance lock (exit 4), because a reload would read half-migrated files; --force runs anyway. --check never refuses.
  • It writes only inside the configuration folders (a link that leads out of one is left alone) and never starts a shell.

Exit codes: 0 nothing to do, or done; 1 --check found work; 2 a file could not be migrated (the others still are; the report names it) or the configuration folder does not exist; 4 a shell is running.

install-session

Writes the desktop file and the systemd user unit that start the shell with your session. See Install and start.

Control commands

A control command asks the running shell, which owns the session bus name io.github.mindderivative.TesseraeShell, to do something and prints the answer. With no shell running it says no shell is running (nobody owns the bus name) and exits 3.

Command What it does
tesserae-shell reload Checks every file and applies it, and answers after the apply: reloaded (...) in N ms, or the errors and exit 1.
tesserae-shell quit Stops the shell (stopping; exit 0 once it has been asked).
tesserae-shell status Shows the state, the versions, the monitors, the surfaces, the modules, the modules that run in a process of their own (name, process id, state, restarts used), the last errors and what the shell knows of its crashes (the unclean starts since the last clean stop, the time of the last crash, and whether it is in safe start). --json prints the shell's own JSON.
tesserae-shell show NAME, hide NAME, toggle NAME Shows, hides or toggles a Panel, a Frame, a melded Panel or a strip by its Name. See Surfaces for what it answers.
tesserae-shell leave-shortcut-mode Leaves shortcut mode whichever window has the keyboard (left shortcut mode, or the shell was not in shortcut mode; exit 0 either way). The way out when Escape no longer reaches the shell.
tesserae-shell call MODULE ACTION [ARG ...] Runs an @action of a module. Each ARG is a JSON value (40, true, "text") or, if it is not valid JSON, the text itself. The answer is printed.
tesserae-shell log-level LEVEL Changes the log level of the running shell, TRACE to CRITICAL, until the next reload of settings.tdl.

status prints something like:

state: running
tesserae-shell <version> (tess_re <version>, python <version>)
monitors: Main (eDP-1)
surfaces:
  Launcher  panel  hidden  eDP-1
  Top_Bar  bar  shown  eDP-1
modules: Clock, Pomodoro
module processes: Pomodoro (pid 4312, running)
last errors: none
unclean starts since the last clean stop: 0
last crash: none

An unclean start is a start that found the previous run ended without a clean stop (SIGKILL, a crash, the watchdog). With no shell running, status still prints the same two lines after no shell is running (and --json adds a recovery object to its error answer) when the state folder holds a crash, so a unit that gave up still shows why. In safe start a third line says so and names the user modules that were not loaded.

It never lists a parameter's value or a line of the log. It also warns on standard error when the installed systemd unit points at a command that no longer exists, or at another installation than the one you ran status from, even when no shell is running.

call reaches only methods that a module marked as an @action; the actions of each shipped module are in its table on Modules. For example, with an Audio module in your shell:

tesserae-shell call Audio set_volume 40
tesserae-shell call Audio toggle_mute

No control command opens a Popup. Settings { Control: false } exports nothing, so every control command exits 3.

--timeout SECONDS (default 5) bounds the wait for the shell; after that the command says the shell did not answer within 5 s (its loop is busy or stuck) and exits 5. A running shell older than the command (after an upgrade you have not restarted) says the running shell (version ...) does not know '...'; this client is version ....

The kwin commands

These help the shell work with KWin. None needs a running shell.

  • tesserae-shell kwin script install | remove | status: installs the shell's KWin script so that KWin runs it from login (the PERSISTENT mode of KWin { Script }). install copies the script's package into KWin's scripts folder, switches it on in kwinrc and asks KWin to reload; remove undoes exactly that; status reports the package, the kwinrc switch and whether KWin has the script loaded now. Options: --kwinrc PATH, --scripts-dir PATH to point at other files, --no-reload.
  • tesserae-shell kwin rule show | install | remove: an opt-in window rule that keeps the shell's surfaces above Plasma's panels. show prints the rule group the shell would write to kwinrulesrc; install shows it, asks first (or takes --yes) and writes that group; remove takes exactly that group out. No other group is ever touched. If KWin cannot be asked to reload after a write, the file is put back as it was. Options: --rules-file PATH, --no-reload, --yes.

The kwin commands, like install-session, were added in 0.1.2 (Install and start).

Not yet checked on KWin: both the KWin script and the window rule are built and tested with temporary files and a fake KWin, but have not been confirmed on a real KWin by the maintainer's hand checks. Use kwin rule show first and read what it would write. You never need either for the shell to run: with the default KWin { Script: RUNTIME } the shell loads its script itself while it runs.

Versions and what a release promises

What each version number of Tesserae Shell promises, how a file says which shell it needs, and a command, tesserae-shell migrate, that brings your files from an older format to the current one. The policy first governs release 0.2.0.

The version numbers

Number Where it is written Covers
Shell release __version__, pyproject.toml, the changelog, the tag vX.Y.Z The package as a whole
TDL language version TDL: in a file's metadata block (major.minor, a string) The punctuation and structure of a file; owned by tess-dl
TEL language version TEL: in the block, and tess_el.LANGUAGE What an expression may say
Schema export version schema_version in tesserae-shell schema --json The keys, blocks, kinds, tokens and modules the shell knows; the configuration application reads it
Module contract The shell release; Shell: in a module file Module, ctx, @action, events
Registry format "registry": 1 in registry.json The shell's own file; you do not edit it
Control interface The bus name io.github.mindderivative.TesseraeShell and its interface version The D-Bus methods and properties

What a release promises

Before 1.0 (0.x) From 1.0
A patch (0.x.Y) Fixes only; no file, command or API change Same
A minor (0.X.0) May change anything below, each change listed under "Changed" or "Removed" in the changelog, with a migrate step when it touches your files New features and additions; nothing removed or renamed; a deprecation may start
A major Not used May remove what was deprecated for at least two minors, each with a migrate step
Command line May change in a minor A command, option, exit code or --json shape never changes in a minor
Schema export Version bumps minor for an addition, major for a change or a removal Same; the configuration application checks the major
Your TDL files A key rename or a language change comes with migrate A file valid for 1.X stays valid for 1.Y
Module contract May change in a minor, with migrate where code can be rewritten Additions only within 1.x

The maintainer decides what goes into a minor; the policy decides how it is told.

Deprecation

  • A renamed or replaced key, block, parameter or command keeps working under its old name for one minor before 1.0 and two minors after, with the warning deprecated-key (or deprecated-command on the command line) naming the replacement and the release that removes it.
  • The schema export marks it (deprecated: {since, removed_in, use}) so the configuration application can show it.
  • migrate rewrites the old name to the new one wherever it can do so without losing meaning. It does not rewrite your module Python: the changelog lists a contract change and the warning names the replacement.

The Shell: pin

Shell: in a file's metadata block is the minimum shell release the file needs. The shell compares it with its own release (major.minor):

  • A pin newer than the shell is the error shell-too-old with file:line:column and the hint "install tesserae-shell X.Y or later". The file is refused, like any file with an error.
  • A TDL: version the installed tesserae-dl does not read is the library's own version error (version-pin), with its hint.
  • A file for an older language version (today TDL: 0.1) is refused with tdl-old-version and the hint to run tesserae-shell migrate. The shell does not read such a file and warn: a file that parses differently from what its author wrote is worse than a clear stop.

Exit codes

Code Name Meaning
0 OK Done.
1 CONFIG The files have errors (check, run, reload), a control command ran and failed (an unknown name, an action that raised), install-session kept a file that differs, or migrate --check found files to change.
2 ENVIRONMENT The machine cannot run it: no Wayland compositor with layer-shell, no session bus, XDG_RUNTIME_DIR unusable, the config folder missing (check, migrate), systemctl missing or refusing (install-session), or a file migrate could not migrate.
3 NOT_RUNNING A control command found no running shell.
4 ALREADY_RUNNING A second run: another shell holds the instance lock. migrate refuses for the same reason, unless --force.
5 TIMEOUT A control command got no answer within --timeout seconds.
69 LOST_COMPOSITOR The Wayland connection was lost (the compositor went away). The shell stops what it runs first, then leaves with this code so that Restart=on-failure of the systemd unit starts it again.
70 INTERNAL An unexpected error inside the shell (it is in the log).
130 FORCED A second signal made the shell leave at once.

With --json an error is also one object on standard output, {"ok": false, "error": "...", "exit": 3}, so a program that drives the command reads one stream. Which of these a command can return is listed with it above.

--help

usage: tesserae-shell [-h] [--config-dir PATH] [--json] [--quiet]
                      [--timeout SECONDS]
                      COMMAND ...

positional arguments:
  COMMAND
    run                 start the shell (default)
    migrate             bring the configuration files to the current format
                        (--check lists what would change)
    check               validate settings and shell files
    version             print versions
    schema              print the schema of the shell's files as JSON (with
                        --json)
    install-session     write the desktop file and the systemd user unit
                        (--enable, --remove, --print)
    reload              reload the running shell and report the errors
    quit                stop the running shell
    status              show the running shell's state (--json: the shell's
                        own JSON)
    show                show a Panel or a Frame by its Name
    hide                hide a Panel or a Frame by its Name
    toggle              toggle a Panel or a Frame by its Name
    leave-shortcut-mode
                        leave shortcut mode (the way out whatever window has
                        the keyboard)
    call                call a module's @action (each ARG a JSON value, or
                        text)
    log-level           change the log level until the next reload of
                        settings.tdl
    kwin                KWin helpers: the script and the window rule (no shell
                        needs to run)

options:
  -h, --help            show this help message and exit
  --config-dir PATH     configuration directory
  --json                machine readable output
  --quiet               only warnings and errors
  --timeout SECONDS     how long a control command waits for the shell
                        (default 5)

Every command's own --help:

tesserae-shell run --help

usage: tesserae-shell run [-h] [--config-dir PATH] [--json] [--quiet]
                          [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell migrate --help

usage: tesserae-shell migrate [-h] [--config-dir PATH] [--json] [--quiet]
                              [--timeout SECONDS] [--check] [--force]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --check            change nothing; exit 1 if any file would change
  --force            migrate even while a shell is running

tesserae-shell check --help

usage: tesserae-shell check [-h] [--config-dir PATH] [--json] [--quiet]
                            [--timeout SECONDS] [--strict] [--import-modules]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --strict           a warning fails the check too (exit code 1)
  --import-modules   also import your modules' Python in throwaway processes
                     (runs its top-level code)

tesserae-shell version --help

usage: tesserae-shell version [-h] [--config-dir PATH] [--json] [--quiet]
                              [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell schema --help

usage: tesserae-shell schema [-h] [--config-dir PATH] [--json] [--quiet]
                             [--timeout SECONDS] [--out FILE]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --out FILE         write the JSON to FILE, not to standard output

tesserae-shell install-session --help

usage: tesserae-shell install-session [-h] [--config-dir PATH] [--json]
                                      [--quiet] [--timeout SECONDS] [--print |
                                      --enable | --remove] [--force]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --print            show both files and their paths, write nothing
  --enable           also run systemctl --user enable tesserae-shell.service
  --remove           disable the unit if it is enabled and remove both files
  --force            replace an existing file that has other content

tesserae-shell reload --help

usage: tesserae-shell reload [-h] [--config-dir PATH] [--json] [--quiet]
                             [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell quit --help

usage: tesserae-shell quit [-h] [--config-dir PATH] [--json] [--quiet]
                           [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell status --help

usage: tesserae-shell status [-h] [--config-dir PATH] [--json] [--quiet]
                             [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell show --help

usage: tesserae-shell show [-h] [--config-dir PATH] [--json] [--quiet]
                           [--timeout SECONDS]
                           name

positional arguments:
  name

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell hide --help

usage: tesserae-shell hide [-h] [--config-dir PATH] [--json] [--quiet]
                           [--timeout SECONDS]
                           name

positional arguments:
  name

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell toggle --help

usage: tesserae-shell toggle [-h] [--config-dir PATH] [--json] [--quiet]
                             [--timeout SECONDS]
                             name

positional arguments:
  name

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell leave-shortcut-mode --help

usage: tesserae-shell leave-shortcut-mode [-h] [--config-dir PATH] [--json]
                                          [--quiet] [--timeout SECONDS]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell call --help

usage: tesserae-shell call [-h] [--config-dir PATH] [--json] [--quiet]
                           [--timeout SECONDS]
                           module action [args ...]

positional arguments:
  module
  action
  args

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell log-level --help

usage: tesserae-shell log-level [-h] [--config-dir PATH] [--json] [--quiet]
                                [--timeout SECONDS]
                                level

positional arguments:
  level

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell kwin --help

usage: tesserae-shell kwin [-h] [--config-dir PATH] [--json] [--quiet]
                           [--timeout SECONDS]
                           GROUP ...

positional arguments:
  GROUP
    script           the shell's KWin script, installed for KWin to run from
                     login (mode P)
    rule             the one window rule that keeps the shell's surfaces above
                     Plasma panels (opt-in)

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)

tesserae-shell kwin script --help

usage: tesserae-shell kwin script [-h] ACTION ...

positional arguments:
  ACTION
    install   copy the script to KWin's scripts folder and enable it in kwinrc
    remove    take the script and its kwinrc switch away
    status    report the package, the kwinrc switch and whether KWin has it
              loaded

options:
  -h, --help  show this help message and exit

tesserae-shell kwin script install --help

usage: tesserae-shell kwin script install [-h] [--config-dir PATH] [--json]
                                          [--quiet] [--timeout SECONDS]
                                          [--kwinrc PATH] [--scripts-dir PATH]
                                          [--no-reload]

options:
  -h, --help          show this help message and exit
  --config-dir PATH   configuration directory
  --json              machine readable output
  --quiet             only warnings and errors
  --timeout SECONDS   how long a control command waits for the shell (default
                      5)
  --kwinrc PATH       KWin's kwinrc
  --scripts-dir PATH  KWin's scripts folder
  --no-reload         do not ask KWin to reload afterwards

tesserae-shell kwin script remove --help

usage: tesserae-shell kwin script remove [-h] [--config-dir PATH] [--json]
                                         [--quiet] [--timeout SECONDS]
                                         [--kwinrc PATH] [--scripts-dir PATH]
                                         [--no-reload]

options:
  -h, --help          show this help message and exit
  --config-dir PATH   configuration directory
  --json              machine readable output
  --quiet             only warnings and errors
  --timeout SECONDS   how long a control command waits for the shell (default
                      5)
  --kwinrc PATH       KWin's kwinrc
  --scripts-dir PATH  KWin's scripts folder
  --no-reload         do not ask KWin to reload afterwards

tesserae-shell kwin script status --help

usage: tesserae-shell kwin script status [-h] [--config-dir PATH] [--json]
                                         [--quiet] [--timeout SECONDS]
                                         [--kwinrc PATH] [--scripts-dir PATH]

options:
  -h, --help          show this help message and exit
  --config-dir PATH   configuration directory
  --json              machine readable output
  --quiet             only warnings and errors
  --timeout SECONDS   how long a control command waits for the shell (default
                      5)
  --kwinrc PATH       KWin's kwinrc
  --scripts-dir PATH  KWin's scripts folder

tesserae-shell kwin rule --help

usage: tesserae-shell kwin rule [-h] ACTION ...

positional arguments:
  ACTION
    show      print the rule group the shell would write to kwinrulesrc
    install   write that group (shows it and asks first, or takes --yes)
    remove    take exactly that group out of kwinrulesrc

options:
  -h, --help  show this help message and exit

tesserae-shell kwin rule show --help

usage: tesserae-shell kwin rule show [-h] [--config-dir PATH] [--json]
                                     [--quiet] [--timeout SECONDS]
                                     [--rules-file PATH]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --rules-file PATH  the rule file (kwinrulesrc)

tesserae-shell kwin rule install --help

usage: tesserae-shell kwin rule install [-h] [--config-dir PATH] [--json]
                                        [--quiet] [--timeout SECONDS]
                                        [--rules-file PATH] [--no-reload]
                                        [--yes]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --rules-file PATH  the rule file (kwinrulesrc)
  --no-reload        do not ask KWin to reload afterwards
  --yes              write without asking

tesserae-shell kwin rule remove --help

usage: tesserae-shell kwin rule remove [-h] [--config-dir PATH] [--json]
                                       [--quiet] [--timeout SECONDS]
                                       [--rules-file PATH] [--no-reload]

options:
  -h, --help         show this help message and exit
  --config-dir PATH  configuration directory
  --json             machine readable output
  --quiet            only warnings and errors
  --timeout SECONDS  how long a control command waits for the shell (default
                     5)
  --rules-file PATH  the rule file (kwinrulesrc)
  --no-reload        do not ask KWin to reload afterwards

Next: troubleshooting.