tmux-mem-cpu-load is a small program designed for system monitoring in the status line of tmux.
There are currently no USE flags for this program.
For user convenience the package has been included in official Gentoo repositories:
emerge --ask app-misc/tmux-mem-cpu-load
For proper integration, tmux's configuration file will need to be modified to include references to tmux-mem-cpu-load. If a configuration file does not exist, which is the default for new tmux installs, the main article has information on how to obtain one.
Once the configuration file has been set add tmux-mem-cpu-load references. The following example will use a configuration file based on the Wiki's example that has been copied to a user's home directory using the following command:
bzcat /usr/share/doc/tmux-2.0/examples/h-boetes.conf.bz2 > ~/.tmux.conf
set -g status-interval 2 set -g status-left "#S #[fg=green,bg=black]#(tmux-mem-cpu-load 2)#[default]" set -g status-left-length 60
Usage: tmux-mem-cpu-load [tmux_status-interval(seconds)] [graph lines]
tmux-mem-cpu-load can be called independently for stand-alone operation or for use as a system status monitor in other programs. In order for the monitor to persist in the terminal, call it using the watch utility:
- Tmux Resurrect - A plugin that persists tmux sessions across system restarts.