Skip to content

Commit

Permalink
Add custom window layout section back in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Oct 9, 2016
1 parent d0d37e5 commit 7f8a47f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,37 @@ the following content:
complete -x -c teamocil -a '(teamocil --list)'
```

### Custom window layout

Teamocil supports all the window layout names supported by tmux.

* `even-horizontal`
* `even-vertical`
* `main-horizontal`
* `main-vertical`
* `tiled`

However, it also supports the custom format understood by tmux. This is
especially useful if you want to manually resize your panes and keep using that
layout in the future.

You can grab the layout for the current window by running this command:

```bash
tmux list-windows -F "#{window_active} #{window_layout}" | grep "^1" | cut -d " " -f 2
```

You can then use the result as the `layout` key for any Teamocil window object.

```yaml
windows:
- name: sample-two-uneven-panes
layout: 00c7,158x38,0,0[158x9,0,0,37,158x28,0,10,39]
panes:
- echo foo
- echo bar
```
## Contributors
Feel free to contribute and submit issues/pull requests
Expand Down

0 comments on commit 7f8a47f

Please sign in to comment.