diff options
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index f9da1967..0be1cd22 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -292,6 +292,14 @@ struct output_config { | |||
292 | }; | 292 | }; |
293 | 293 | ||
294 | /** | 294 | /** |
295 | * An output config pre-matched to an output | ||
296 | */ | ||
297 | struct matched_output_config { | ||
298 | struct sway_output *output; | ||
299 | struct output_config *config; | ||
300 | }; | ||
301 | |||
302 | /** | ||
295 | * Stores size of gaps for each side | 303 | * Stores size of gaps for each side |
296 | */ | 304 | */ |
297 | struct side_gaps { | 305 | struct side_gaps { |
@@ -680,20 +688,22 @@ const char *sway_output_scale_filter_to_string(enum scale_filter_mode scale_filt | |||
680 | 688 | ||
681 | struct output_config *new_output_config(const char *name); | 689 | struct output_config *new_output_config(const char *name); |
682 | 690 | ||
683 | void merge_output_config(struct output_config *dst, struct output_config *src); | 691 | bool apply_output_configs(struct matched_output_config *configs, |
684 | 692 | size_t configs_len, bool test_only); | |
685 | bool apply_output_config(struct output_config *oc, struct sway_output *output); | ||
686 | 693 | ||
687 | bool test_output_config(struct output_config *oc, struct sway_output *output); | 694 | void apply_all_output_configs(void); |
688 | 695 | ||
689 | struct output_config *store_output_config(struct output_config *oc); | 696 | /** |
697 | * store_output_config stores a new output config. An output may be matched by | ||
698 | * three different config types, in order of precedence: Identifier, name and | ||
699 | * wildcard. When storing a config type of lower precedence, assume that the | ||
700 | * user wants the config to take immediate effect by superseding (clearing) the | ||
701 | * same values from higher presedence configuration. | ||
702 | */ | ||
703 | void store_output_config(struct output_config *oc); | ||
690 | 704 | ||
691 | struct output_config *find_output_config(struct sway_output *output); | 705 | struct output_config *find_output_config(struct sway_output *output); |
692 | 706 | ||
693 | void apply_output_config_to_outputs(struct output_config *oc); | ||
694 | |||
695 | void reset_outputs(void); | ||
696 | |||
697 | void free_output_config(struct output_config *oc); | 707 | void free_output_config(struct output_config *oc); |
698 | 708 | ||
699 | bool spawn_swaybg(void); | 709 | bool spawn_swaybg(void); |