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¶
session_name: gallery-blankwindows: - 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¶
session_name: gallery-commandsshell_command_before: - printf setupwindows: - window_name: shell panes: - shell_command: - printf first - printf secondBoth commands run in one pane after its inherited setup. Read command ordering before adding delays or commands that should remain unsubmitted.
More complete examples¶
- Session options and environment.
- Explicit window index and synchronized input.
- Pane launch shell and focus.
- Inherited directories.
- Environment overrides.
- Checked bootstrap process.
Use the workspace library when application code needs to construct sessions directly.