# SwayWs A tool which allows easy moving of workspaces to and from outputs Developed for use with the [Sway](https://swaywm.org/) compositor ## Features - Move numeric ranges of workspaces at once - When a moved workspace is focused, it will always be opened at the specified output - The focus is returned by default to the workspace that was focused before SwayWs was invoked - The previously visible workspaces are visible again by default after moving one or more workspaces ## Usage ``` SwayWs allows easy moving of workspaces to and from outputs Usage: swayws Commands: focus Focus a workspace list Lists infos about sway move Moves a workspace to a specified output range Moves a range of workspaces to a specified output swap Swaps two workspaces with each other ``` ### `swayws m[ove]` ``` Moves a workspace to a specified output Usage: swayws move [OPTIONS] Arguments: Workspace to move Name of the output Options: -a, --away Moves workspace to output that does not match the specified output name --not Excludes outputs to move workspace to, must be used with --away -f, --focus Focuses specified workspace after moving it ``` ### `swayws r[ange]` ``` Moves a range of workspaces to a specified output Usage: swayws range [OPTIONS] Arguments: First workspace in range Last workspace in range Name of the output Options: -a, --away Moves workspace to output that does not match the specified output name --not Excludes outputs to move workspace to, must be used with --away -n, --numeric Assumes and are numbers and binds all workspaces in between them to the specified output ``` ### `swayws s[wap]` ``` Swaps two workspaces with each other Usage: swayws swap ``` ## Examples ```sh swayws move 1 eDP-1 swayws range 11 20 DP-3 swayws range 11 20 eDP-1 --away swayws range 11 20 eDP-1 --away --not DP-3 --not DP-5 swayws list swayws focus 1 swayws swap 4 17 ```