Skip to content

Variables

fdev31 edited this page Apr 6, 2024 · 1 revision

Some commands support shared global variables, they must be defined in the pyprland section of the configuration:

[pyprland.variables]
term = "foot"
term_classed = "foot -a" # kitty uses --class

If a plugin supports it, you can then use the variables in the attribute that supports it, eg:

[myplugin]
some_variable = "the terminal is [term]"
Clone this wiki locally