Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 694 Bytes

VARIABLES.md

File metadata and controls

28 lines (22 loc) · 694 Bytes

Variables

This is only supported on Hybrid version 0.2.9 and higher.


How do I make variables?

You can make variables by specifying them in a similar format as hybrid, here's an example:

"variables": {
    "cool_message": "a very cool message indeed"
}

All variables have to be a child-key of variables, otherwise Hybrid won't be able to find it.

But.. How do I use my epic variable?

To actually use your variable, you can do something like this:

"left-label_mvp": {
    "text": "cool_message"
}

Then the text will automatically be replaced with the value from cool_message. Variables are supported on these keys:

  • text
  • command
  • tooltip