diff options
author | 2018-10-10 17:07:02 +0200 | |
---|---|---|
committer | 2018-10-10 17:07:02 +0200 | |
commit | 0a36d14d7a694a88580da1d9b83837afe608a2eb (patch) | |
tree | e21f0b633212c6b8084348f08fc68cec2efece8b /include/swaybar/config.h | |
parent | Merge pull request #2814 from Emantor/mouse-warping-container (diff) | |
parent | Merge branch 'master' into bar-bindsym (diff) | |
download | sway-0a36d14d7a694a88580da1d9b83837afe608a2eb.tar.gz sway-0a36d14d7a694a88580da1d9b83837afe608a2eb.tar.zst sway-0a36d14d7a694a88580da1d9b83837afe608a2eb.zip |
Merge pull request #2798 from RedSoxFan/bar-bindsym
Implement bar bindsym
Diffstat (limited to 'include/swaybar/config.h')
-rw-r--r-- | include/swaybar/config.h | 8 |
1 files changed, 8 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 | ||
8 | struct box_colors { | 9 | struct box_colors { |
@@ -17,6 +18,12 @@ struct config_output { | |||
17 | size_t index; | 18 | size_t index; |
18 | }; | 19 | }; |
19 | 20 | ||
21 | struct swaybar_binding { | ||
22 | uint32_t button; | ||
23 | char *command; | ||
24 | bool release; | ||
25 | }; | ||
26 | |||
20 | struct swaybar_config { | 27 | struct 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; |