Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature move to scratchpad #1180

Merged
merged 1 commit into from
Apr 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sway/commands/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct cmd_results *cmd_move(int argc, char **argv) {
swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE);
move_workspace_to(workspace, output);
}
} else if (strcasecmp(argv[0], "scratchpad") == 0) {
} else if (strcasecmp(argv[0], "scratchpad") == 0 || (strcasecmp(argv[0], "to") == 0 && strcasecmp(argv[1], "scratchpad") == 0)) {
// move scratchpad ...
if (view->type != C_CONTAINER && view->type != C_VIEW) {
return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views.");
Expand Down
3 changes: 3 additions & 0 deletions sway/sway.5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ They are expected to be used with **bindsym** or at runtime through **swaymsg**(
Moves the focused container or workspace to the output identified by _name_ or
_direction_. _direction_ may be one of _up_, _down_, _left_, _right_.

**move** [to] scratchpad::
Moves the focused window to the scratchpad.

**reload**::
Reloads the sway config file without restarting sway.

Expand Down