diff options
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 16 | ||||
-rw-r--r-- | include/swaybar/ipc.h | 3 |
2 files changed, 16 insertions, 3 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 6e1ab66d..c89aa61c 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -30,6 +30,8 @@ struct swaybar_output { | |||
30 | struct wl_surface *surface; | 30 | struct wl_surface *surface; |
31 | struct zwlr_layer_surface_v1 *layer_surface; | 31 | struct zwlr_layer_surface_v1 *layer_surface; |
32 | 32 | ||
33 | struct wl_list workspaces; | ||
34 | |||
33 | char *name; | 35 | char *name; |
34 | size_t index; | 36 | size_t index; |
35 | bool focused; | 37 | bool focused; |
@@ -39,9 +41,19 @@ struct swaybar_output { | |||
39 | struct pool_buffer *current_buffer; | 41 | struct pool_buffer *current_buffer; |
40 | }; | 42 | }; |
41 | 43 | ||
44 | struct swaybar_workspace { | ||
45 | struct wl_list link; | ||
46 | int num; | ||
47 | char *name; | ||
48 | bool focused; | ||
49 | bool visible; | ||
50 | bool urgent; | ||
51 | }; | ||
52 | |||
53 | // TODO: Rename stuff to match wlroots conventions (init/create/etc) | ||
42 | void bar_setup(struct swaybar *bar, | 54 | void bar_setup(struct swaybar *bar, |
43 | const char *socket_path, | 55 | const char *socket_path, |
44 | const char *bar_id); | 56 | const char *bar_id); |
45 | void bar_run(struct swaybar *bar); | 57 | void bar_run(struct swaybar *bar); |
46 | void bar_teardown(struct swaybar *bar); | 58 | void bar_teardown(struct swaybar *bar); |
47 | 59 | ||
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h index 7f71a506..f3881bd0 100644 --- a/include/swaybar/ipc.h +++ b/include/swaybar/ipc.h | |||
@@ -2,7 +2,8 @@ | |||
2 | #define _SWAYBAR_IPC_H | 2 | #define _SWAYBAR_IPC_H |
3 | #include "swaybar/bar.h" | 3 | #include "swaybar/bar.h" |
4 | 4 | ||
5 | void ipc_get_config(struct swaybar *bar, const char *bar_id); | 5 | void ipc_initialize(struct swaybar *bar, const char *bar_id); |
6 | void handle_ipc_event(struct swaybar *bar); | 6 | void handle_ipc_event(struct swaybar *bar); |
7 | void ipc_get_workspaces(struct swaybar *bar); | ||
7 | 8 | ||
8 | #endif | 9 | #endif |