# Server.selectLayout(_:_:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Mutations.swift#L44
- **Page:** https://libtmux.org/reference/swift/server-selectlayout(_-_-)/

```
Server.selectLayout(_:_:)(window: Window, layout: String) -> ()
```

Applies one of tmux's own layouts — `even-horizontal`, `tiled`, and the rest — to a window.

## Raises

- `TmuxError`
