mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Added splith and splitv to workspace_layout
This commit is contained in:
parent
1ade0ce753
commit
0c83a9564c
2 changed files with 6 additions and 2 deletions
|
|
@ -9,13 +9,17 @@ struct cmd_results *cmd_workspace_layout(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
if (strcasecmp(argv[0], "default") == 0) {
|
if (strcasecmp(argv[0], "default") == 0) {
|
||||||
config->default_layout = L_NONE;
|
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) {
|
} else if (strcasecmp(argv[0], "stacking") == 0) {
|
||||||
config->default_layout = L_STACKED;
|
config->default_layout = L_STACKED;
|
||||||
} else if (strcasecmp(argv[0], "tabbed") == 0) {
|
} else if (strcasecmp(argv[0], "tabbed") == 0) {
|
||||||
config->default_layout = L_TABBED;
|
config->default_layout = L_TABBED;
|
||||||
} else {
|
} else {
|
||||||
return cmd_results_new(CMD_INVALID,
|
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);
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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:
|
It can be disabled by setting the command to a single dash:
|
||||||
_swaynag\_command -_
|
_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.
|
Specifies the initial layout for new containers in an empty workspace.
|
||||||
|
|
||||||
*xwayland* enable|disable|force
|
*xwayland* enable|disable|force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue