added a new command include_one

This commit is contained in:
yashsinghcodes 2024-04-01 03:59:58 +00:00
parent dcb142bf5e
commit 3a739a67ec
7 changed files with 62 additions and 5 deletions

View file

@ -144,6 +144,7 @@ sway_cmd cmd_fullscreen;
sway_cmd cmd_gaps;
sway_cmd cmd_hide_edge_borders;
sway_cmd cmd_include;
sway_cmd cmd_include_one;
sway_cmd cmd_inhibit_idle;
sway_cmd cmd_input;
sway_cmd cmd_seat;

View file

@ -614,7 +614,10 @@ bool load_main_config(const char *path, bool is_active, bool validating);
* Loads an included config. Can only be used after load_main_config.
*/
void load_include_configs(const char *path, struct sway_config *config,
struct swaynag_instance *swaynag);
struct swaynag_instance *swaynag, bool flag);
void load_include_one_config(const char *paths, struct sway_config *config,
struct swaynag_instance *swaynag);
/**
* Reads the config from the given FILE.