|
|
@ -13,7 +13,7 @@ struct cmd_results *cmd_move(int argc, char **argv) {
|
|
|
|
if ((error = checkarg(argc, "move", EXPECTED_AT_LEAST, 1))) {
|
|
|
|
if ((error = checkarg(argc, "move", EXPECTED_AT_LEAST, 1))) {
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const char* expected_syntax = "Expected 'move <left|right|up|down|next|prev>' or "
|
|
|
|
const char* expected_syntax = "Expected 'move <left|right|up|down|next|prev|first>' or "
|
|
|
|
"'move <container|window> to workspace <name>' or "
|
|
|
|
"'move <container|window> to workspace <name>' or "
|
|
|
|
"'move <container|window|workspace> to output <name|direction>' or "
|
|
|
|
"'move <container|window|workspace> to output <name|direction>' or "
|
|
|
|
"'move position mouse'";
|
|
|
|
"'move position mouse'";
|
|
|
@ -31,6 +31,8 @@ struct cmd_results *cmd_move(int argc, char **argv) {
|
|
|
|
move_container(view, MOVE_NEXT);
|
|
|
|
move_container(view, MOVE_NEXT);
|
|
|
|
} else if (strcasecmp(argv[0], "prev") == 0) {
|
|
|
|
} else if (strcasecmp(argv[0], "prev") == 0) {
|
|
|
|
move_container(view, MOVE_PREV);
|
|
|
|
move_container(view, MOVE_PREV);
|
|
|
|
|
|
|
|
} else if (strcasecmp(argv[0], "first") == 0) {
|
|
|
|
|
|
|
|
move_container(view, MOVE_FIRST);
|
|
|
|
} else if (strcasecmp(argv[0], "container") == 0 || strcasecmp(argv[0], "window") == 0) {
|
|
|
|
} else if (strcasecmp(argv[0], "container") == 0 || strcasecmp(argv[0], "window") == 0) {
|
|
|
|
// "move container ...
|
|
|
|
// "move container ...
|
|
|
|
if ((error = checkarg(argc, "move container/window", EXPECTED_AT_LEAST, 4))) {
|
|
|
|
if ((error = checkarg(argc, "move container/window", EXPECTED_AT_LEAST, 4))) {
|
|
|
|