mirror of https://github.com/polybar/polybar.git
include-directory
parent
57103f35ae
commit
6a3538cfb3
|
@ -77,17 +77,27 @@ baz = false
|
||||||
|
|
||||||
## File inclusion
|
## File inclusion
|
||||||
It is possible to include a file with pre-defined key-value pairs using:
|
It is possible to include a file with pre-defined key-value pairs using:
|
||||||
~~~ dosini
|
``` dosini
|
||||||
[section/base]
|
[section/base]
|
||||||
include-file = /absolute/path/to/file
|
include-file = /absolute/path/to/file
|
||||||
~~~
|
```
|
||||||
|
|
||||||
This will replace the `include-file` key with the contents of the file at
|
This will replace the `include-file` key with the contents of the file at
|
||||||
`/absolute/path/to/file`.
|
`/absolute/path/to/file`.
|
||||||
|
|
||||||
**Note:** The files included that way can also contain further ``include-file``
|
The `include-directory` key will include all files in the given directory
|
||||||
keys. Make sure that you do not create a cycle where a file includes itself
|
(non-recursively) the same way as multiple `include-file` keys. Files are
|
||||||
directly or indirectly.
|
included in alphabetical order.
|
||||||
|
|
||||||
|
``` dosini
|
||||||
|
include-directory = /absolute/path/to/directory
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** `include-directory` is unreleased and will be available in polybar 3.5.0
|
||||||
|
|
||||||
|
**Note:** The files included that way can also contain further `include-file`
|
||||||
|
and `include-directory` keys. Make sure that you do not create a cycle where a
|
||||||
|
file includes itself directly or indirectly.
|
||||||
|
|
||||||
## Custom variables
|
## Custom variables
|
||||||
~~~ dosini
|
~~~ dosini
|
||||||
|
|
Loading…
Reference in New Issue