2025-12-01 15:12:50 -08:00
|
|
|
# Monitor Multiple Hosts with Zellij
|
|
|
|
|
|
|
|
|
|
Use Zellij to monitor multiple socktop instances in a single terminal.
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cargo install zellij
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Example Layout
|
|
|
|
|
|
|
|
|
|
Create `socktop-layout.kdl`:
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
layout {
|
|
|
|
|
pane split_direction="vertical" {
|
|
|
|
|
pane command="socktop" {
|
|
|
|
|
args "-P" "rpi-master"
|
|
|
|
|
}
|
|
|
|
|
pane command="socktop" {
|
|
|
|
|
args "-P" "rpi-worker-1"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
pane split_direction="vertical" {
|
|
|
|
|
pane command="socktop" {
|
|
|
|
|
args "-P" "rpi-worker-2"
|
|
|
|
|
}
|
|
|
|
|
pane command="socktop" {
|
|
|
|
|
args "-P" "rpi-worker-3"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Run it:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
zellij --layout socktop-layout.kdl
|
|
|
|
|
```
|
|
|
|
|
|
2026-08-23 21:35:27 -07:00
|
|
|
## Saved Layouts
|
2025-12-01 15:12:50 -08:00
|
|
|
|
2026-08-23 21:35:27 -07:00
|
|
|
Layouts placed in `~/.config/zellij/layouts/` can be launched by name:
|
2025-12-01 15:12:50 -08:00
|
|
|
|
|
|
|
|
```bash
|
2026-08-23 21:35:27 -07:00
|
|
|
cp socktop-layout.kdl ~/.config/zellij/layouts/socktop-monitoring.kdl
|
2025-12-01 15:12:50 -08:00
|
|
|
zellij --layout socktop-monitoring
|
|
|
|
|
```
|
2026-08-23 21:35:27 -07:00
|
|
|
|
|
|
|
|
The pane commands reference [connection profiles](../usage/connection-profiles.md) by name (`-P rpi-master`), so create the profiles first.
|
|
|
|
|
|
|
|
|
|
## More Info
|
|
|
|
|
|
|
|
|
|
For detailed Zellij documentation, see [Zellij](https://zellij.dev/).
|