aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-05-28 17:27:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-13 09:55:23 +0000
commit755f96321ab47f931d11680027d47d1d772f5584 (patch)
treebf35e0c7ca5b15640513b2ad3f470c29a6127267 /config.h
parentcommands: scroll up: simplify viewport clamping logic (diff)
config: add a new ‘environment’ section
This section allows the user to define custom environment variables to be set in the child process: [environment] name=value
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index 2061415e..de5d8a7b 100644
--- a/config.h
+++ b/config.h
@@ -104,6 +104,12 @@ struct config_spawn_template {
struct argv argv;
};
+struct env_var {
+ char *name;
+ char *value;
+};
+typedef tll(struct env_var) env_var_list_t;
+
struct config {
char *term;
char *shell;
@@ -296,6 +302,8 @@ struct config {
struct config_spawn_template notify;
bool notify_focus_inhibit;
+ env_var_list_t env_vars;
+
struct {
enum fcft_scaling_filter fcft_filter;
bool overflowing_glyphs;