include-directory

patrick96 2020-10-08 17:52:18 +02:00
parent 57103f35ae
commit 6a3538cfb3
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7
1 changed files with 15 additions and 5 deletions

@ -77,17 +77,27 @@ baz = false
## File inclusion
It is possible to include a file with pre-defined key-value pairs using:
~~~ dosini
``` dosini
[section/base]
include-file = /absolute/path/to/file
~~~
```
This will replace the `include-file` key with the contents of the file at
`/absolute/path/to/file`.
**Note:** The files included that way can also contain further ``include-file``
keys. Make sure that you do not create a cycle where a file includes itself
directly or indirectly.
The `include-directory` key will include all files in the given directory
(non-recursively) the same way as multiple `include-file` keys. Files are
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
~~~ dosini