# LibTmux::Window#select_layout

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

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

Behavior: Entity mutation.

Behavior contract: Entity mutation.

## Parameters

- `arg1` (`::String | ::Symbol`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `select_layout`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_select_layout_entry`](/en/tmux/latest/reference/c-variable-cmd_select_layout_entry/) (attribute)
- [`cmd_select_layout_exec`](/en/tmux/latest/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function)

## In other ports

Set a window's pane layout

| Language | Equivalent |
| --- | --- |
| 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.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) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
