# io.github.libtmux.kotlin.WindowBuilder

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt#L103
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-windowbuilder/

```
@LibTmuxDsl
public class WindowBuilder
```

Configure a window and its pane splits inside a [SessionBuilder] block.

## Members

### Other members

- `directory` (property)
- `env` (method): Adds a variable to the new window's environment, keeping any already set.
- `name` (property)
- `running` (method): Runs [argv] in this window instead of the default shell.
- `split` (method)
