# LibTmux.WindowLink

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex#L432
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-windowlink/

An observed session/index/window binding with an explicit unlink action.

A binding identifies a slot and physical window, with the same key after
the same window is relinked there. Capture again to see any changes.

## Members

### Common operations

- [`index`](/en/elixir/pr-173/reference/libtmux-windowlink-index/) (property)
- [`active`](/en/elixir/pr-173/reference/libtmux-windowlink-active/) (property)
- [`id`](/en/elixir/pr-173/reference/libtmux-windowlink-id/) (property): Required: building the struct without this key is an error.

### Other members

- [`server_instance`](/en/elixir/pr-173/reference/libtmux-windowlink-server_instance/) (property): Required: building the struct without this key is an error.
- [`session_id`](/en/elixir/pr-173/reference/libtmux-windowlink-session_id/) (property)
- [`t/0`](/en/elixir/pr-173/reference/libtmux-windowlink-t-0/) (typealias): A captured session/index/window binding, including its session-relative active state.
- [`unlink!/3`](/en/elixir/pr-173/reference/libtmux-windowlink-unlink-bang-3/) (function): Returns `:ok` for a completed unlink or raises the action error.
- [`unlink/3`](/en/elixir/pr-173/reference/libtmux-windowlink-unlink-3/) (function): Removes one observed session/index/window binding.
- [`window_id`](/en/elixir/pr-173/reference/libtmux-windowlink-window_id/) (property)

## Guides

Pages that discuss `WindowLink`.

- [Read values, execute explicitly](/en/elixir/pr-173/concepts/mental-model/)
- [Captured tmux state](/en/elixir/pr-173/concepts/observations/)
