# LibTmux.FSharp.WindowSpec

- **Module:** LibTmux.FSharp
- **Package:** LibTmux.FSharp
- **Language:** F#
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.FSharp/Spec.fsi#L37
- **Page:** https://libtmux.org/en/fsharp/latest/reference/libtmux-fsharp-windowspec/

```
type WindowSpec

module WindowSpec
```

Describes a window: its first pane, then each pane split off the one before.

Build one from <c>WindowSpec.named</c> or <c>WindowSpec.empty</c> with a copy-and-update expression.

## Members

### Other members

- `Command` (property): The command the first pane runs instead of the default shell.
- `Directory` (property): The first pane's working directory.
- `empty` (constant): A window tmux names after its command, running the default shell.
- `Environment` (property): Variables added to the first pane's environment; a session's first window takes them from the session instead.
- `Name` (property): The window's name; tmux names it after its command when None.
- `named` (function): A named window running the default shell.
- `Splits` (property): The panes split off in order, each beside the pane before it.
- `ToString` (method): Names the window, without formatting through printf.
