diff options
Diffstat (limited to 'swaybar/bar.h')
-rw-r--r-- | swaybar/bar.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/swaybar/bar.h b/swaybar/bar.h deleted file mode 100644 index 89496da6..00000000 --- a/swaybar/bar.h +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | #ifndef _SWAYBAR_BAR_H | ||
2 | #define _SWAYBAR_BAR_H | ||
3 | |||
4 | #include "client/registry.h" | ||
5 | #include "client/window.h" | ||
6 | #include "list.h" | ||
7 | |||
8 | struct bar { | ||
9 | struct config *config; | ||
10 | struct status_line *status; | ||
11 | struct output *output; | ||
12 | /* list_t *outputs; */ | ||
13 | |||
14 | int ipc_event_socketfd; | ||
15 | int ipc_socketfd; | ||
16 | int status_read_fd; | ||
17 | pid_t status_command_pid; | ||
18 | }; | ||
19 | |||
20 | struct output { | ||
21 | struct window *window; | ||
22 | struct registry *registry; | ||
23 | list_t *workspaces; | ||
24 | char *name; | ||
25 | }; | ||
26 | |||
27 | struct workspace { | ||
28 | int num; | ||
29 | char *name; | ||
30 | bool focused; | ||
31 | bool visible; | ||
32 | bool urgent; | ||
33 | }; | ||
34 | |||
35 | /** | ||
36 | * Setup bar. | ||
37 | */ | ||
38 | void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id, int desired_output); | ||
39 | |||
40 | /** | ||
41 | * Bar mainloop. | ||
42 | */ | ||
43 | void bar_run(struct bar *bar); | ||
44 | |||
45 | /** | ||
46 | * free workspace list. | ||
47 | */ | ||
48 | void free_workspaces(list_t *workspaces); | ||
49 | |||
50 | /** | ||
51 | * Teardown bar. | ||
52 | */ | ||
53 | void bar_teardown(struct bar *bar); | ||
54 | |||
55 | #endif /* _SWAYBAR_BAR_H */ | ||