# Workspace

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/TmuxWorkspace/Workspace.swift#L12
- **Page:** https://libtmux.org/reference/swift/workspace/

A tmux layout described as data, in tmuxp's vocabulary.

The modelled keys use tmuxp's spelling, so files limited to this structural
subset need no translation. tmuxp's plugins, hooks, and environment runtime
are ignored.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `sessionName` (property) — What the session is called once built.
- `startDirectory` (property) — Where every window starts unless it names its own. Left out, tmux uses whatever directory it was started from.
- `windows` (property) — The windows to build, in the order they are written.
- `init(sessionName:startDirectory:windows:)` (method)
- `decode(json:)` (method) — Reads a workspace from JSON.
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
