diff options
-rw-r--r-- | .build.yml | 25 | ||||
-rw-r--r-- | sway/commands/move.c | 2 | ||||
-rw-r--r-- | sway/sway.5.txt | 3 |
3 files changed, 29 insertions, 1 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 00000000..424071bc --- /dev/null +++ b/.build.yml | |||
@@ -0,0 +1,25 @@ | |||
1 | # vim: ft=yaml ts=2 sw=2 et : | ||
2 | image: archlinux | ||
3 | packages: | ||
4 | - cmake | ||
5 | - wlc-git | ||
6 | - xorg-server-xwayland | ||
7 | - xcb-util-image | ||
8 | - json-c | ||
9 | - pango | ||
10 | - cairo | ||
11 | - wayland | ||
12 | - gdk-pixbuf2 | ||
13 | - asciidoc | ||
14 | repos: | ||
15 | - https://git.sr.ht/~sircmpwn/sway | ||
16 | tasks: | ||
17 | - setup: | | ||
18 | cd sway | ||
19 | mkdir build | ||
20 | cd build | ||
21 | cmake .. | ||
22 | - build: | | ||
23 | cd sway | ||
24 | cd build | ||
25 | make | ||
diff --git a/sway/commands/move.c b/sway/commands/move.c index 3c47cfe7..a38687c1 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -120,7 +120,7 @@ struct cmd_results *cmd_move(int argc, char **argv) { | |||
120 | swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE); | 120 | swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE); |
121 | move_workspace_to(workspace, output); | 121 | move_workspace_to(workspace, output); |
122 | } | 122 | } |
123 | } else if (strcasecmp(argv[0], "scratchpad") == 0) { | 123 | } else if (strcasecmp(argv[0], "scratchpad") == 0 || (strcasecmp(argv[0], "to") == 0 && strcasecmp(argv[1], "scratchpad") == 0)) { |
124 | // move scratchpad ... | 124 | // move scratchpad ... |
125 | if (view->type != C_CONTAINER && view->type != C_VIEW) { | 125 | if (view->type != C_CONTAINER && view->type != C_VIEW) { |
126 | return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views."); | 126 | 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 d76951b5..446fbf05 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**( | |||
118 | Moves the focused container or workspace to the output identified by _name_ or | 118 | Moves the focused container or workspace to the output identified by _name_ or |
119 | _direction_. _direction_ may be one of _up_, _down_, _left_, _right_. | 119 | _direction_. _direction_ may be one of _up_, _down_, _left_, _right_. |
120 | 120 | ||
121 | **move** [to] scratchpad:: | ||
122 | Moves the focused window to the scratchpad. | ||
123 | |||
121 | **reload**:: | 124 | **reload**:: |
122 | Reloads the sway config file without restarting sway. | 125 | Reloads the sway config file without restarting sway. |
123 | 126 | ||