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 ## 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