Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Monitor Multiple Hosts with Zellij

Use Zellij to monitor multiple socktop instances in a single terminal.

Installation

cargo install zellij

Example Layout

Create socktop-layout.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:

zellij --layout socktop-layout.kdl

Saved Layouts

Layouts placed in ~/.config/zellij/layouts/ can be launched by name:

cp socktop-layout.kdl ~/.config/zellij/layouts/socktop-monitoring.kdl
zellij --layout socktop-monitoring

The pane commands reference connection profiles by name (-P rpi-master), so create the profiles first.

More Info

For detailed Zellij documentation, see Zellij.