mirror of https://github.com/polybar/polybar.git
include-directory
parent
57103f35ae
commit
6a3538cfb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue