aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-08 11:40:13 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-09 08:12:46 -0400
commit1c969e86f50065985ddf35b7fef62c14aa7688a5 (patch)
tree1d44b026ffb8cd67595b695ac92275ba320ee4d9 /include/swaybar
parentMerge pull request #2804 from Emantor/swaynag-double-free (diff)
downloadsway-1c969e86f50065985ddf35b7fef62c14aa7688a5.tar.gz
sway-1c969e86f50065985ddf35b7fef62c14aa7688a5.tar.zst
sway-1c969e86f50065985ddf35b7fef62c14aa7688a5.zip
Implement bar bindsym
Diffstat (limited to 'include/swaybar')
-rw-r--r--include/swaybar/config.h8
-rw-r--r--include/swaybar/ipc.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index 5f5688cf..d0336c27 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -3,6 +3,7 @@
3#include <stdbool.h> 3#include <stdbool.h>
4#include <stdint.h> 4#include <stdint.h>
5#include <wayland-client.h> 5#include <wayland-client.h>
6#include "list.h"
6#include "util.h" 7#include "util.h"
7 8
8struct box_colors { 9struct box_colors {
@@ -17,6 +18,12 @@ struct config_output {
17 size_t index; 18 size_t index;
18}; 19};
19 20
21struct swaybar_binding {
22 uint32_t button;
23 char *command;
24 bool release;
25};
26
20struct swaybar_config { 27struct swaybar_config {
21 char *status_command; 28 char *status_command;
22 bool pango_markup; 29 bool pango_markup;
@@ -29,6 +36,7 @@ struct swaybar_config {
29 bool binding_mode_indicator; 36 bool binding_mode_indicator;
30 bool wrap_scroll; 37 bool wrap_scroll;
31 bool workspace_buttons; 38 bool workspace_buttons;
39 list_t *bindings;
32 struct wl_list outputs; // config_output::link 40 struct wl_list outputs; // config_output::link
33 bool all_outputs; 41 bool all_outputs;
34 int height; 42 int height;
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h
index 81e48a6b..8731dac2 100644
--- a/include/swaybar/ipc.h
+++ b/include/swaybar/ipc.h
@@ -7,5 +7,6 @@ bool ipc_initialize(struct swaybar *bar, const char *bar_id);
7bool handle_ipc_readable(struct swaybar *bar); 7bool handle_ipc_readable(struct swaybar *bar);
8void ipc_get_workspaces(struct swaybar *bar); 8void ipc_get_workspaces(struct swaybar *bar);
9void ipc_send_workspace_command(struct swaybar *bar, const char *ws); 9void ipc_send_workspace_command(struct swaybar *bar, const char *ws);
10void ipc_execute_binding(struct swaybar *bar, struct swaybar_binding *bind);
10 11
11#endif 12#endif