From d4ac594264442a33ae06c69a1254951894f3c4e2 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Tue, 18 Apr 2017 21:35:57 +0200 Subject: Implement and document `move [to] scratchpad` --- sway/commands/move.c | 2 +- sway/sway.5.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sway/commands/move.c b/sway/commands/move.c index 3c47cfe..a38687c 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -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."); diff --git a/sway/sway.5.txt b/sway/sway.5.txt index d76951b..446fbf0 100644 --- a/sway/sway.5.txt +++ b/sway/sway.5.txt @@ -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. -- cgit v1.1