From 755f96321ab47f931d11680027d47d1d772f5584 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 28 May 2022 19:27:29 +0200 Subject: config: add a new ‘environment’ section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This section allows the user to define custom environment variables to be set in the child process: [environment] name=value --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h') 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; -- cgit v1.3