What is Tmux Integration?
Tmux integration allows you to:- Manage multiple terminal sessions that persist across app restarts
- Split your terminal into multiple panes for side-by-side workflows
- Switch between sessions seamlessly
- Keep your work running even when Termy is closed
Prerequisites
Before enabling tmux integration, ensure you have tmux installed:Enabling Tmux
When
tmux_persistence is enabled, your tabs and panes will persist across app restarts. Termy creates a dedicated tmux socket named termy to manage sessions.Session Management
Creating and Switching Sessions
Access tmux session management through the command palette or File menu:Open Session Manager
Press
Cmd+P (macOS) or Ctrl+P (Linux/Windows) to open the command palette, then search for “tmux Sessions”Session Naming
When creating a new session, provide a meaningful name:Pane Operations
Splitting Panes
Termy provides intuitive pane splitting: Vertical Split (side-by-side):- Command Palette: Search for “Split Pane Vertical”
- The keybinding is configurable via
config.txt
- Command Palette: Search for “Split Pane Horizontal”
- The keybinding is configurable via
config.txt
Split Your First Pane
Open the command palette and select “Split Pane Vertical” to create a side-by-side layout
Closing Panes
To close a pane:- Focus the pane you want to close
- Type
exitor pressCtrl+Dto terminate the shell - The pane will automatically close
Pane Focus Highlighting
When working with multiple panes, Termy visually highlights the active pane:Keyboard Shortcuts
Customize tmux-related keybindings in yourconfig.txt:
Tmux-only keybind actions require an active tmux session to function.
Persistence and Recovery
Withtmux_persistence = true, Termy preserves your workspace:
What Persists:
- Tab layout and arrangement
- Pane splits and sizes
- Working directories
- Session names
- Running processes (they terminate when Termy closes)
- Scrollback buffer contents
- Command history within the session
Troubleshooting
Tmux Version Error
Custom Tmux Binary Path
If tmux is not in your PATH:Session Won’t Attach
If Termy can’t attach to a session:-
Check if tmux is running:
-
Kill stale sessions:
- Restart Termy with a fresh tmux socket
Control Mode Issues
If you see control mode errors:- Ensure no other application is using the
termytmux socket - Check tmux version compatibility
- Verify tmux binary path in configuration
Advanced Configuration
Custom Socket Name
Termy uses the socket nametermy by default. This keeps Termy sessions separate from your manual tmux sessions.
Window Options
For managed sessions, Termy overrides certain tmux window options to ensure proper integration. These are configured automatically.Shell Integration
When tmux mode is enabled, Termy disables shell integration environment variables for tmux child processes:Next Steps
- Explore Custom Themes to personalize your tmux workspace
- Configure Shell Integration for enhanced tab titles
- Learn about Font Configuration for optimal readability