# Server.selectLayout(_:_:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Mutations.swift#L47
- **Page:** https://libtmux.org/en/swift/latest/reference/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`
