Nata Script Options

January 4, 2025 ยท View on GitHub

This document lists all Nata script options in detail.

Table of Contents


-h, --help

DESCDisplay the help message and exit.

-v, --version

DESCShow the script version and exit.

-q, --quiet

DESCRun in quiet mode; logs errors only, without logging informational messages or warnings.

-R, --rule

DESCDisplays detailed information about the active window and the matching rule.

This option can be useful for testing whether the active window matches any rules defined in your configuration.


-i, --interval

DESCSet the update interval for checking the active window and changing the layer.
ARGN (in milliseconds)
once to specify a single check.
Def200

Note

If the interval is specified in the configuration file as well, the interval option will override it.

If set to once, it will exit after a single check.

Warning

The recommended range for the update interval is 50 to 200 milliseconds. Using value below 50 milliseconds will increase CPU usage.


-p, --port

DESCSpecify a TCP port or an IP address with a port.
ARGPORT or IP:PORT
Def127.0.0.1:10000

Important

Ensure that the specified IP and port match those used by Kanata to avoid connection issues. For example:

kanata -p 127.0.0.1:10000

-C, --class

DESCChange to the layer and exit if the specified argument matches the rule: { "class": "<VALUE>", "title": "*" }.
ARGWINDOW_CLASS

For more information about rules, see the window rules doc.


-t, --title

DESCChange to the layer and exit if the specified argument matches the rule: { "class": "*", "title": "<VALUE>" }.
ARGWINDOW_TITLE

For more information about rules, see the window rules doc.


-l, --layer

DESCSpecify a layer name to switch to that layer and exit.
ARGLAYER_NAME

-c, --config

DESCSpecify the path to the config file in JSON format.
ARGCONFIG_FILE
DEF~/.config/kanata/config.json

For more information and examples, see the config doc.


-r, --recipes

DESCSpecify the path to a script that will run in the background whenever the layer changes.
ARGSCRIPT_PATH
DEF~/.config/kanata/recipes.sh

For more information and examples, see the recipes doc.


If you find something unclear or have suggestions for improvements, we welcome your contributions! Please feel free to report any bugs or issues you encounter.