Tmux/plugins/tmux-mem-cpu-load

From Gentoo Wiki
< Tmux‎ | plugins
Jump to: navigation, search
Resources

tmux-mem-cpu-load is a small program designed for system monitoring in the status line of tmux.

Installation

USE flags

There are currently no USE flags for this program.

Emerge

For user convenience the package has been included in official Gentoo repositories:

root #emerge --ask app-misc/tmux-mem-cpu-load

Configuration

tmux integration

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:

user $bzcat /usr/share/doc/tmux-2.0/examples/h-boetes.conf.bz2 > ~/.tmux.conf
FILE ~/.tmux.confAdding tmux-mem-cpu-load references
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

user $tmux-mem-cpu-load -h
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:

user $watch tmux-mem-cpu-load

See also

  • Tmux Resurrect - A plugin that persists tmux sessions across system restarts.

External resources