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
This commit is contained in:
Daniel Eklöf 2022-05-28 19:27:29 +02:00
parent 497c31d9fc
commit 755f96321a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 63 additions and 4 deletions

View file

@ -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;