# LibTmux::Async::Server::select_layout

- **Module:** LibTmux::Async
- **Package:** LibTmux-Async
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/async/lib/LibTmux/Async/Server.pm#L77
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-async-server-select_layout/

```
sub select_layout($self, %args)
```

See [`"select_layout" in LibTmux::Server`](/en/perl/latest/reference/libtmux-server-select_layout/) for arguments, returned value, and completion.

## Methods

## Parameters

- `args`

## tmux command

The tmux commands behind `select_layout`.

- [`display-message`](/en/tmux/latest/manual/display-message/) (daemon identity or target preflight)
- [`select-layout`](/en/tmux/latest/manual/select-layout/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_message_entry`](/en/tmux/latest/reference/c-variable-cmd_display_message_entry/) (attribute)
- [`cmd_display_message_exec`](/en/tmux/latest/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function)
- [`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) |
| Ruby | [`LibTmux::Window#select_layout`](/en/ruby/latest/reference/libtmux-window-select_layout/) (method) |
| Lua | [`libtmux.Window:layout`](/en/lua/latest/reference/libtmux-window-layout/) (method) |
| Erlang | [`tmux_window:select_layout/2`](/en/erlang/latest/reference/tmux_window-select_layout-2/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| 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) |
| OCaml | [`Libtmux_unix.Client.select_layout`](/en/ocaml/latest/reference/libtmux_unix-client-select_layout/) (function) |

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