# LibTmux::Window#select_layout

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/entity.rb#L131
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-window-select_layout/

tmux command: [`select-layout`](/en/tmux/latest/manual/select-layout/)

```
def select_layout: (
  ::String | ::Symbol,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Entity mutation.

Behavior contract: Entity mutation.

## In other ports

### Set a window's pane layout

- Python: [`libtmux.Window.select_layout`](/en/py/latest/reference/libtmux-window-select_layout/) (method)
- Lua: [`libtmux.Window:layout`](/en/lua/latest/reference/libtmux-window-layout/) (method)
- TypeScript: [`window.Window.selectLayout`](/en/ts/latest/reference/window-window-selectlayout/) (method)
- Rust: [`window.Window.select_layout`](/en/rs/latest/reference/window-window-select_layout/) (method)
- Go: [`tmux.Window.SelectLayout`](/en/go/latest/reference/tmux-window-selectlayout/) (method)
- Java: [`io.github.libtmux.Window.Window.selectLayout`](/en/java/latest/reference/io-github-libtmux-window-window-selectlayout/) (method)
- C#: [`LibTmux.Window.SelectLayoutAsync`](/en/csharp/latest/reference/libtmux-window-selectlayoutasync/) (method)
- C++: [`libtmux::Window::select_layout`](/en/cxx/latest/reference/libtmux-window-select_layout/) (method)
- Swift: [`Server.selectLayout(_:_:)`](/en/swift/latest/reference/server-selectlayout(_-_-)/) (method)
