Skip to content

Commit

Permalink
fixup! Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Oct 29, 2023
1 parent e249b9a commit dcf6501
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,32 @@
- [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)

## close-all-windows-but-current

> `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`
```
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`
```
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.

Expand All @@ -49,23 +57,35 @@ It will open up Terminal.app and make it float. `sleep 1` is still required beca
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)`
```
focus (left|down|up|right)
```

Sets focus to the nearest window in the given direction.

Contrary to i3, `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 window.
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|list|accordion|horizontal|vertical|tiling|floating)...`
```
layout (h_list|v_list|h_accordion|v_accordion|list|accordion|horizontal|vertical|tiling|floating)...
```

Changes layout of the focused window to the given layout.

If several arguments are supplied then

If the currently active layout is not in the list, the first layout in the list will be activated.

`layout (h_list|v_list|h_accordion|v_accordion|list|accordion|horizontal|vertical)` does nothing for floating windows.

Expand All @@ -77,4 +97,6 @@ This technique eliminates the need for an additional binding for floating window

## move-through

## move-workspace-to-display

## reload-config

0 comments on commit dcf6501

Please sign in to comment.