From 6a3538cfb3155a01abd8140fa96a886529bd7f9f Mon Sep 17 00:00:00 2001
From: patrick96
Date: Thu, 8 Oct 2020 17:52:18 +0200
Subject: [PATCH] include-directory
---
Configuration.md | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/Configuration.md b/Configuration.md
index e3c6752..95f1a65 100644
--- a/Configuration.md
+++ b/Configuration.md
@@ -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