Skip to content

Includes

The includes option provides a way to compose configuration files. This is useful in cases when you want to share or distribute some base configuration across many machines, but each machine needs some unique override to make things work correctly. For example, it may be more useful to bind alt as the action key on a laptop and meta as the action key on a desktop.

Files are loaded in the order in which they are provided in the list. If a path is invalid, the file is skipped and not loaded. Files loaded later have priority over files loaded earlier, meaning that the "included" file may potentially override values set in the parent file. Configuration values that are lists will be concatenated, with "included" files being concatenated at the front of the list in order to gain priority.

Example

# ~/.config/miracle-wm/config.yaml

includes:
    - ~/.config/miracle-wm/user_config.yaml
    - ~/.config/miracle-wm/colors.yaml

Schema

includes: <string[]>

Properties

includes

required type: List of strings (file paths)

A list of configuration file paths to include. Each path may start with ~ to specify the user's home directory. Files are loaded in order, with later files taking priority over earlier ones.

Default

includes: []