diff options
Diffstat (limited to 'sway/commands/workspace_layout.c')
-rw-r--r-- | sway/commands/workspace_layout.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/commands/workspace_layout.c b/sway/commands/workspace_layout.c index b7b4b033..3e0a12ce 100644 --- a/sway/commands/workspace_layout.c +++ b/sway/commands/workspace_layout.c | |||
@@ -13,8 +13,16 @@ struct cmd_results *cmd_workspace_layout(int argc, char **argv) { | |||
13 | config->default_layout = L_STACKED; | 13 | config->default_layout = L_STACKED; |
14 | } else if (strcasecmp(argv[0], "tabbed") == 0) { | 14 | } else if (strcasecmp(argv[0], "tabbed") == 0) { |
15 | config->default_layout = L_TABBED; | 15 | config->default_layout = L_TABBED; |
16 | } else if (strcasecmp(argv[0], "auto_left") == 0) { | ||
17 | config->default_layout = L_AUTO_LEFT; | ||
18 | } else if (strcasecmp(argv[0], "auto_right") == 0) { | ||
19 | config->default_layout = L_AUTO_RIGHT; | ||
20 | } else if (strcasecmp(argv[0], "auto_top") == 0) { | ||
21 | config->default_layout = L_AUTO_TOP; | ||
22 | } else if (strcasecmp(argv[0], "auto_bottom") == 0) { | ||
23 | config->default_layout = L_AUTO_BOTTOM; | ||
16 | } else { | 24 | } else { |
17 | return cmd_results_new(CMD_INVALID, "workspace_layout", "Expected 'workspace_layout <default|stacking|tabbed>'"); | 25 | return cmd_results_new(CMD_INVALID, "workspace_layout", "Expected 'workspace_layout <default|stacking|tabbed|auto_left|auto_right|auto_top|auto_bottom>'"); |
18 | } | 26 | } |
19 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 27 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
20 | } | 28 | } |