-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6689cdc
commit 526ff35
Showing
5 changed files
with
120 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,123 @@ | ||
# Commands | ||
|
||
**Table of contents** | ||
- [close-all-windows-but-current](#close-all-windows-but-current) | ||
- [exec-and-forget](#exec-and-forget) | ||
- [exec-and-wait](#exec-and-wait) | ||
- [flatten-workspace-tree](#flatten-workspace-tree) | ||
- [focus](#focus) | ||
- [layout](#layout) | ||
- [mode](#mode) | ||
- [move-container-to-workspace](#move-container-to-workspace) | ||
- [move-in](#move-in) | ||
- [move-through](#move-through) | ||
- [move-workspace-to-display](#move-workspace-to-display) | ||
- [reload-config](#reload-config) | ||
- [resize](#resize) | ||
- [workspace-back-and-forth](#workspace-back-and-forth) | ||
- [workspace](#workspace) | ||
|
||
## close-all-windows-but-current | ||
|
||
``` | ||
close-all-windows-but-current | ||
``` | ||
|
||
On the focused workspace, closes all windows but current. This command doesn't have any arguments. | ||
|
||
## exec-and-forget | ||
|
||
``` | ||
exec-and-forget bash_command | ||
``` | ||
|
||
Runs `/bin/bash -c '$bash_command'`. Stdout, stderr and exit code are ignored. | ||
|
||
For example, you can use this command to launch applications: `exec-and-forget open -n /System/Applications/Utilities/Terminal.app` | ||
|
||
## exec-and-wait | ||
|
||
``` | ||
exec-and-wait bash_command | ||
``` | ||
|
||
Runs `/bin/bash -c '$bash_command'`, and waits until the command is terminated. Stdout, stderr and exit code are ignored. | ||
|
||
Please prefer `exec-and-forget`, unless you need to wait for the termination. | ||
|
||
You might want to wait for the termination if you have a list of commands, and you want `bash_command` to exit until you run the | ||
next command. | ||
|
||
Suppose that you have this binding in your config: | ||
```toml | ||
alt-enter = ['exec-and-wait open -n /System/Applications/Utilities/Terminal.app && sleep 1', 'layout floating'] | ||
``` | ||
|
||
It will open up Terminal.app and make it float. `sleep 1` is still required because `open` returns before the window appears. | ||
|
||
## flatten-workspace-tree | ||
|
||
``` | ||
flatten-workspace-tree | ||
``` | ||
|
||
Flattens [the tree](./guide.md#tree) of currently focused workspace. This command doesn't have any arguments. | ||
|
||
The command is useful when you messed up with your layout, and it's easier to "reset" it and start again. | ||
|
||
## focus | ||
|
||
``` | ||
focus (left|down|up|right) | ||
``` | ||
|
||
Sets focus to the nearest window in [the tree](./guide.md#tree) in the given direction. | ||
|
||
[Contrary to i3](https://i3wm.org/docs/userguide.html#_focusing_moving_containers), `focus` command doesn't have a separate | ||
argument to focus floating windows. From `focus` command perspective, floating windows are part of [the tree](./guide.md#tree). | ||
The floating window parent is determined as the smallest tiling container that contains the center of the floating window. | ||
|
||
This technique eliminates the need for an additional binding for floating windows. | ||
|
||
`focus child|parent` [isn't yet supported](https://github.com/nikitabobko/AeroSpace/issues/5) because of a low priority. | ||
|
||
## layout | ||
|
||
> `layout (h_list|v_list|h_accordion|v_accordion|tiling|floating|sticky...)` | ||
``` | ||
layout (h_list|v_list|h_accordion|v_accordion|list|accordion|horizontal|vertical|tiling|floating)... | ||
``` | ||
|
||
## move-through | ||
Changes layout of the focused window to the given layout. | ||
|
||
If several arguments are supplied then the first layout that describes the currently active is found. The layout specified after | ||
the found one will be applied. If the currently active layout is not in the list, the first layout in the list will be activated. | ||
|
||
`layout tiling` is the only command that makes the focused floating window tiled. | ||
|
||
## mode | ||
|
||
> SYNO | ||
``` | ||
mode name_of_the_target_mode | ||
``` | ||
|
||
## move-container-to-workspace | ||
|
||
## move-in | ||
|
||
## move-through | ||
|
||
``` | ||
move-through (left|down|up|right) | ||
``` | ||
|
||
This command is an analog of [i3's move command](https://i3wm.org/docs/userguide.html#move_direction) | ||
|
||
## move-workspace-to-display | ||
|
||
## reload-config | ||
|
||
## resize | ||
|
||
## workspace-back-and-forth | ||
|
||
## workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters