mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1180 from wasamasa/feature-move-to-scratchpad
Feature move to scratchpad
This commit is contained in:
		
						commit
						17593ac559
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -120,7 +120,7 @@ struct cmd_results *cmd_move(int argc, char **argv) {
 | 
				
			||||||
			swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE);
 | 
								swayc_t *workspace = swayc_parent_by_type(view, C_WORKSPACE);
 | 
				
			||||||
			move_workspace_to(workspace, output);
 | 
								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 ...
 | 
							// move scratchpad ...
 | 
				
			||||||
		if (view->type != C_CONTAINER && view->type != C_VIEW) {
 | 
							if (view->type != C_CONTAINER && view->type != C_VIEW) {
 | 
				
			||||||
			return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views.");
 | 
								return cmd_results_new(CMD_FAILURE, "move scratchpad", "Can only move containers and views.");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
						Moves the focused container or workspace to the output identified by _name_ or
 | 
				
			||||||
	_direction_. _direction_ may be one of _up_, _down_, _left_, _right_.
 | 
						_direction_. _direction_ may be one of _up_, _down_, _left_, _right_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**move** [to] scratchpad::
 | 
				
			||||||
 | 
						Moves the focused window to the scratchpad.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**reload**::
 | 
					**reload**::
 | 
				
			||||||
	Reloads the sway config file without restarting sway.
 | 
						Reloads the sway config file without restarting sway.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue