aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml25
-rw-r--r--sway/commands/move.c2
-rw-r--r--sway/sway.5.txt3
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 @@
+# vim: ft=yaml ts=2 sw=2 et :
+image: archlinux
+packages:
+ - cmake
+ - wlc-git
+ - xorg-server-xwayland
+ - xcb-util-image
+ - json-c
+ - pango
+ - cairo
+ - wayland
+ - gdk-pixbuf2
+ - asciidoc
+repos:
+ - https://git.sr.ht/~sircmpwn/sway
+tasks:
+ - setup: |
+ cd sway
+ mkdir build
+ cd build
+ cmake ..
+ - build: |
+ cd sway
+ cd build
+ 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) {
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 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**(
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.