Skip to content

modes.yaml

Simply a list of the names of the modes you would like to use in your config.

modes.yaml
- shift
- select
- my_mode

For more info, see the sub-section of zcx concepts.

Firing command bundles on mode changes

You may fire a command bundle when a mode is enabled, disabled, or toggled. Instead of specifying just the mode name as a string, you should specify an object like so:

modes.yaml
- shift
- mode: select
  on_enter: METRO ON
  on_leave: METRO OFF
  on_toggle:
    msg: metro toggled
- my_mode