diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 5 | ||||
-rw-r--r-- | include/container.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 32562908..e6fc9f28 100644 --- a/include/config.h +++ b/include/config.h @@ -92,6 +92,7 @@ struct bar_config { enum desktop_shell_panel_position position; list_t *bindings; char *status_command; + char *swaybar_command; char *font; int height; // -1 not defined int tray_padding; @@ -184,6 +185,10 @@ int sway_mouse_binding_cmp(const void *a, const void *b); int sway_mouse_binding_cmp_buttons(const void *a, const void *b); void free_sway_mouse_binding(struct sway_mouse_binding *smb); +void load_swaybars(swayc_t *output, int output_idx); +void terminate_swaybars(list_t *pids); +void terminate_swaybg(pid_t pid); + /** * Allocate and initialize default bar configuration. */ diff --git a/include/container.h b/include/container.h index 9a67a689..d76160de 100644 --- a/include/container.h +++ b/include/container.h @@ -1,5 +1,6 @@ #ifndef _SWAY_CONTAINER_H #define _SWAY_CONTAINER_H +#include <sys/types.h> #include <wlc/wlc.h> typedef struct sway_container swayc_t; @@ -81,6 +82,11 @@ struct sway_container { char *class; char *app_id; + // Used by output containers to keep track of swaybar/swaybg child + // processes. + list_t *bar_pids; + pid_t bg_pid; + int gaps; list_t *children; |