mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-07 08:21:02 -04:00
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:
parent
497c31d9fc
commit
755f96321a
6 changed files with 63 additions and 4 deletions
8
config.h
8
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue