Added splith and splitv to workspace_layout

This commit is contained in:
Mann mit Hut 2022-12-21 18:14:26 +01:00
parent 1ade0ce753
commit 0c83a9564c
No known key found for this signature in database
GPG key ID: 02D4D60B8250CB8C
2 changed files with 6 additions and 2 deletions

View file

@ -9,13 +9,17 @@ struct cmd_results *cmd_workspace_layout(int argc, char **argv) {
}
if (strcasecmp(argv[0], "default") == 0) {
config->default_layout = L_NONE;
} else if (strcasecmp(argv[0], "splith") == 0) {
config->default_layout = L_HORIZ;
} else if (strcasecmp(argv[0], "splitv") == 0) {
config->default_layout = L_VERT;
} else if (strcasecmp(argv[0], "stacking") == 0) {
config->default_layout = L_STACKED;
} else if (strcasecmp(argv[0], "tabbed") == 0) {
config->default_layout = L_TABBED;
} else {
return cmd_results_new(CMD_INVALID,
"Expected 'workspace_layout <default|stacking|tabbed>'");
"Expected 'workspace_layout <default|splith|splitv|stacking|tabbed>'");
}
return cmd_results_new(CMD_SUCCESS, NULL);
}

View file

@ -88,7 +88,7 @@ The following commands may only be used in the configuration file.
It can be disabled by setting the command to a single dash:
_swaynag\_command -_
*workspace_layout* default|stacking|tabbed
*workspace_layout* default|splith|splitv|stacking|tabbed
Specifies the initial layout for new containers in an empty workspace.
*xwayland* enable|disable|force