summaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index b53c1f1f..eab48aed 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -93,6 +93,7 @@ struct input_config {
93 93
94 int accel_profile; 94 int accel_profile;
95 int click_method; 95 int click_method;
96 int drag;
96 int drag_lock; 97 int drag_lock;
97 int dwt; 98 int dwt;
98 int left_handed; 99 int left_handed;
@@ -167,13 +168,14 @@ struct output_config {
167}; 168};
168 169
169/** 170/**
170 * Maps a workspace name to an output name. 171 * Stores configuration for a workspace, regardless of whether the workspace
171 * 172 * exists.
172 * Set via `workspace <x> output <y>`
173 */ 173 */
174struct workspace_output { 174struct workspace_config {
175 char *output;
176 char *workspace; 175 char *workspace;
176 char *output;
177 int gaps_inner;
178 int gaps_outer;
177}; 179};
178 180
179struct bar_config { 181struct bar_config {
@@ -327,7 +329,7 @@ struct sway_config {
327 list_t *modes; 329 list_t *modes;
328 list_t *bars; 330 list_t *bars;
329 list_t *cmd_queue; 331 list_t *cmd_queue;
330 list_t *workspace_outputs; 332 list_t *workspace_configs;
331 list_t *output_configs; 333 list_t *output_configs;
332 list_t *input_configs; 334 list_t *input_configs;
333 list_t *seat_configs; 335 list_t *seat_configs;
@@ -450,20 +452,16 @@ void free_sway_variable(struct sway_variable *var);
450 */ 452 */
451char *do_var_replacement(char *str); 453char *do_var_replacement(char *str);
452 454
453struct cmd_results *check_security_config();
454
455int input_identifier_cmp(const void *item, const void *data); 455int input_identifier_cmp(const void *item, const void *data);
456 456
457struct input_config *new_input_config(const char* identifier); 457struct input_config *new_input_config(const char* identifier);
458 458
459void merge_input_config(struct input_config *dst, struct input_config *src); 459void merge_input_config(struct input_config *dst, struct input_config *src);
460 460
461struct input_config *copy_input_config(struct input_config *ic); 461struct input_config *store_input_config(struct input_config *ic);
462 462
463void free_input_config(struct input_config *ic); 463void free_input_config(struct input_config *ic);
464 464
465void apply_input_config(struct input_config *input);
466
467int seat_name_cmp(const void *item, const void *data); 465int seat_name_cmp(const void *item, const void *data);
468 466
469struct seat_config *new_seat_config(const char* name); 467struct seat_config *new_seat_config(const char* name);
@@ -474,7 +472,7 @@ struct seat_config *copy_seat_config(struct seat_config *seat);
474 472
475void free_seat_config(struct seat_config *ic); 473void free_seat_config(struct seat_config *ic);
476 474
477struct seat_attachment_config *seat_attachment_config_new(); 475struct seat_attachment_config *seat_attachment_config_new(void);
478 476
479struct seat_attachment_config *seat_config_get_attachment( 477struct seat_attachment_config *seat_config_get_attachment(
480 struct seat_config *seat_config, char *identifier); 478 struct seat_config *seat_config, char *identifier);
@@ -512,9 +510,7 @@ void free_sway_binding(struct sway_binding *sb);
512 510
513void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding); 511void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding);
514 512
515void load_swaybars(); 513void load_swaybars(void);
516
517void invoke_swaybar(struct bar_config *bar);
518 514
519void terminate_swaybg(pid_t pid); 515void terminate_swaybg(pid_t pid);
520 516
@@ -522,6 +518,8 @@ struct bar_config *default_bar_config(void);
522 518
523void free_bar_config(struct bar_config *bar); 519void free_bar_config(struct bar_config *bar);
524 520
521void free_workspace_config(struct workspace_config *wsc);
522
525/** 523/**
526 * Updates the value of config->font_height based on the max title height 524 * Updates the value of config->font_height based on the max title height
527 * reported by each container. If recalculate is true, the containers will 525 * reported by each container. If recalculate is true, the containers will