Workspace ManagerExamples

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Edit this page on GitHub

Workspace examples

LibTmux.Workspace 0.0.0-alpha.20 · Source

Each configuration below is a complete workspace document. Save it to a file and load it on the private socket from the installation walkthrough.

Two blank panes

gallery-blank.yaml
session_name: gallery-blank
windows:
- window_name: work
layout: even-horizontal
panes: [null, null]

Blank panes open their shells without application-specific prerequisites. Change the layout to arrange them vertically.

Setup before pane commands

gallery-commands.yaml
session_name: gallery-commands
shell_command_before:
- printf setup
windows:
- window_name: shell
panes:
- shell_command:
- printf first
- printf second

Both commands run in one pane after its inherited setup. Read command ordering before adding delays or commands that should remain unsubmitted.

More complete examples

Use the workspace library when application code needs to construct sessions directly.

CLI source.

Esc

Type to search.