diff options
author | Moelf <jerryling315@gmail.com> | 2019-05-10 23:57:53 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-05-14 00:11:04 -0400 |
commit | ed2e553b8d0dff3e74eeaa80a2586458271b2565 (patch) | |
tree | 3b48f4efad369798686611f21a380330e4c930dc /include | |
parent | Spawn swaybar as a wayland client (diff) | |
download | sway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.tar.gz sway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.tar.zst sway-ed2e553b8d0dff3e74eeaa80a2586458271b2565.zip |
Implement output toggle
discussed in #4136, this can't handle wildcard but won't crash.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/output.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index cfe2aa07..c4903788 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -270,6 +270,7 @@ sway_cmd output_cmd_mode; | |||
270 | sway_cmd output_cmd_position; | 270 | sway_cmd output_cmd_position; |
271 | sway_cmd output_cmd_scale; | 271 | sway_cmd output_cmd_scale; |
272 | sway_cmd output_cmd_subpixel; | 272 | sway_cmd output_cmd_subpixel; |
273 | sway_cmd output_cmd_toggle; | ||
273 | sway_cmd output_cmd_transform; | 274 | sway_cmd output_cmd_transform; |
274 | 275 | ||
275 | sway_cmd seat_cmd_attach; | 276 | sway_cmd seat_cmd_attach; |
diff --git a/include/sway/output.h b/include/sway/output.h index cae77e2e..d4438c0e 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -82,8 +82,12 @@ void output_damage_box(struct sway_output *output, struct wlr_box *box); | |||
82 | void output_damage_whole_container(struct sway_output *output, | 82 | void output_damage_whole_container(struct sway_output *output, |
83 | struct sway_container *con); | 83 | struct sway_container *con); |
84 | 84 | ||
85 | // this ONLY includes the enabled outputs | ||
85 | struct sway_output *output_by_name_or_id(const char *name_or_id); | 86 | struct sway_output *output_by_name_or_id(const char *name_or_id); |
86 | 87 | ||
88 | // this includes all the outputs, including disabled ones | ||
89 | struct sway_output *all_output_by_name_or_id(const char *name_or_id); | ||
90 | |||
87 | void output_sort_workspaces(struct sway_output *output); | 91 | void output_sort_workspaces(struct sway_output *output); |
88 | 92 | ||
89 | void output_enable(struct sway_output *output, struct output_config *oc); | 93 | void output_enable(struct sway_output *output, struct output_config *oc); |