# LibTmux.select_layout

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/operations.jl#L339
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-select_layout/

```
select_layout(
    connection::LibTmux.ControlConnection,
    target::LibTmux.WindowRef,
    layout::Union{AbstractString, Symbol};
    kwargs...
)

select_layout(
    server::LibTmux.Server,
    target::LibTmux.WindowRef,
    layout::Union{AbstractString, Symbol};
    kwargs...
)
```

## Methods

### `select_layout` (overload 1)

```julia
select_layout(
    connection::LibTmux.ControlConnection,
    target::LibTmux.WindowRef,
    layout::Union{AbstractString, Symbol};
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/control_topology.jl#L123).

Apply a named layout symbol, unambiguous alias or serialized tmux layout. Malformed headers are rejected before I/O; tmux validates checksums and layout structure. Mirrored layouts require an observed tmux version of 3.5 or later. Return `ControlResult` after the completion fence on the pinned daemon.

```julia
select_layout(connection::ControlConnection, window::WindowRef, layout; kwargs...)
```

### `select_layout` (overload 2)

```julia
select_layout(
    server::LibTmux.Server,
    target::LibTmux.WindowRef,
    layout::Union{AbstractString, Symbol};
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/operations.jl#L345).

Apply a named or serialized tmux layout to an exact window. Aliases must be unambiguous among known layout names; mirrored layouts require observed tmux 3.5 or later. Malformed headers are rejected before I/O. tmux validates a serialized layout's checksum and structure and retains its ordinary errors.

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `select_layout(connection, target, layout, kwargs)`)
- `target` (`LibTmux.WindowRef`)
- `layout` (`Union{AbstractString, Symbol}`)
- `kwargs`
- `server` (`LibTmux.Server`) (for `select_layout(server, target, layout, kwargs)`)
