mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
introduce next/prev as a direction for focus/move commands.
This commit is contained in:
parent
bc3dc97026
commit
0ff9fe9a7a
6 changed files with 75 additions and 14 deletions
|
|
@ -49,7 +49,8 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
|
|||
} else if (strcasecmp(argv[0], "splitv") == 0) {
|
||||
swayc_change_layout(parent, L_VERT);
|
||||
} else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) {
|
||||
if (parent->layout == L_HORIZ && (parent->workspace_layout == L_NONE || parent->workspace_layout == L_HORIZ)) {
|
||||
if (parent->layout == L_HORIZ && (parent->workspace_layout == L_NONE ||
|
||||
parent->workspace_layout == L_HORIZ)) {
|
||||
swayc_change_layout(parent, L_VERT);
|
||||
} else {
|
||||
swayc_change_layout(parent, L_HORIZ);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue