2009-09-11 02:13:33 -04:00
|
|
|
====================================================
|
2010-02-25 12:13:59 -05:00
|
|
|
tmux-mem-cpu-load
|
2009-09-11 02:13:33 -04:00
|
|
|
====================================================
|
|
|
|
----------------------------------------------------
|
2010-02-25 12:13:59 -05:00
|
|
|
CPU, RAM memory, and load monitor for use with tmux_
|
2009-09-11 02:13:33 -04:00
|
|
|
----------------------------------------------------
|
|
|
|
|
2015-01-05 07:03:07 -05:00
|
|
|
.. image:: https://travis-ci.org/thewtex/tmux-mem-cpu-load.svg
|
2013-06-13 22:07:07 -04:00
|
|
|
:target: https://travis-ci.org/thewtex/tmux-mem-cpu-load
|
|
|
|
|
2015-07-30 16:03:52 -04:00
|
|
|
.. image:: https://circleci.com/gh/thewtex/tmux-mem-cpu-load.svg?style=svg
|
|
|
|
:target: https://circleci.com/gh/thewtex/tmux-mem-cpu-load
|
|
|
|
|
2009-09-11 02:13:33 -04:00
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
A simple, lightweight program provided for system monitoring in the *status*
|
|
|
|
line of **tmux**.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
The memory monitor displays the used and available memory.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
The CPU usage monitor outputs a percent CPU usage over all processors. It also
|
2010-08-01 11:17:42 -04:00
|
|
|
displays a textual bar graph of the current percent usage.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
The system load average is also displayed.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
Example output::
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
2885/7987MB [||||| ] 51.2% 2.11 2.35 2.44
|
|
|
|
|
|
|
|
^ ^ ^ ^ ^ ^ ^
|
|
|
|
| | | | | | |
|
2013-03-18 03:27:13 -04:00
|
|
|
1 2 3 4 5 6 7
|
2010-02-25 12:13:59 -05:00
|
|
|
|
2010-02-25 12:20:27 -05:00
|
|
|
1. Currently used memory.
|
|
|
|
2. Available memory.
|
|
|
|
3. CPU usage bar graph.
|
|
|
|
4. CPU usage percentage.
|
|
|
|
5. Load average for the past minute.
|
|
|
|
6. Load average for the past 5 minutes.
|
|
|
|
7. Load average for the past 15 minutes.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2013-05-03 14:28:12 -04:00
|
|
|
For `terminals with 256 color support`_, graded colors can be displayed by
|
|
|
|
passing the **--colors** flag.
|
|
|
|
|
2009-09-11 02:13:33 -04:00
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
2015-02-19 22:41:53 -05:00
|
|
|
Currently, Linux, Mac OSX, FreeBSD, OpenBSD, and NetBSD are supported.
|
2013-04-04 19:52:38 -04:00
|
|
|
|
2009-09-11 02:13:33 -04:00
|
|
|
Building
|
|
|
|
~~~~~~~~
|
|
|
|
|
2013-04-04 19:52:38 -04:00
|
|
|
* >= CMake_ -2.6
|
2015-01-17 10:37:45 -05:00
|
|
|
* C++ compiler with C++11 support (e.g. gcc/g++ >= 4.6)
|
2009-09-11 02:13:33 -04:00
|
|
|
|
|
|
|
Download
|
|
|
|
--------
|
|
|
|
|
|
|
|
There are links to the source code at the `project homepage`_.
|
|
|
|
|
|
|
|
Build
|
|
|
|
-----
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
cd <source dir>
|
|
|
|
cmake .
|
|
|
|
make
|
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
su -
|
|
|
|
make install
|
|
|
|
logout
|
|
|
|
|
2015-09-30 15:25:04 -04:00
|
|
|
Build and Install Using `Antigen`
|
2015-09-30 15:11:21 -04:00
|
|
|
-------
|
2015-09-30 15:16:00 -04:00
|
|
|
|
2015-09-30 13:57:06 -04:00
|
|
|
Include the bundle in your ``.zshrc``
|
2015-09-30 14:51:53 -04:00
|
|
|
|
2015-09-30 15:25:04 -04:00
|
|
|
``antigen bundle thewtex/tmux-mem-cpu-load``
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
Configuring tmux_
|
2013-06-09 22:55:08 -04:00
|
|
|
=================
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:20:27 -05:00
|
|
|
Edit ``$HOME/.tmux.conf`` to display the program's output in *status-left* or
|
2010-02-25 12:13:59 -05:00
|
|
|
*status-right*. For example::
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
set -g status-interval 2
|
2015-01-19 23:00:48 -05:00
|
|
|
set -g status-left "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors --interval 2)#[default]"
|
2015-02-19 20:46:17 -05:00
|
|
|
set -g status-left-length 60
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2015-01-19 23:00:48 -05:00
|
|
|
Note that the *interval* argument to `tmux-mem-cpu-load` should be the same number
|
2010-02-25 12:13:59 -05:00
|
|
|
of seconds that *status-interval* is set at.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2015-01-19 23:00:48 -05:00
|
|
|
Another optional argument is the number of bars in the bar graph, which
|
2010-08-01 11:17:42 -04:00
|
|
|
defaults to 10. This can, for instance, be set to the number of cores in a
|
|
|
|
multi-core system.
|
|
|
|
|
2015-01-19 23:00:48 -05:00
|
|
|
The *colors* option will add graded colors for each of the measures.
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2015-01-19 23:00:48 -05:00
|
|
|
The full usage::
|
|
|
|
|
|
|
|
Usage: tmux-mem-cpu-load [OPTIONS]
|
|
|
|
|
|
|
|
Available options:
|
|
|
|
-h, --help
|
|
|
|
Prints this help message
|
|
|
|
--colors
|
|
|
|
Use tmux colors in output
|
|
|
|
-i <value>, --interval <value>
|
|
|
|
Set tmux status refresh interval in seconds. Default: 1 second
|
|
|
|
-g <value>, --graph-lines <value>
|
|
|
|
Set how many lines should be drawn in a graph. Default: 10
|
|
|
|
|
|
|
|
|
|
|
|
Authors
|
|
|
|
=======
|
2009-09-11 02:13:33 -04:00
|
|
|
|
|
|
|
Matt McCormick (thewtex) <matt@mmmccormick.com>
|
|
|
|
|
2013-06-09 22:57:37 -04:00
|
|
|
Contributions from:
|
|
|
|
|
2015-03-01 19:23:25 -05:00
|
|
|
* Jasper Lievisse Adriaanse <jasper@humppa.nl>
|
2013-06-09 22:57:37 -04:00
|
|
|
* Justin Crawford <justinc@pci-online.net>
|
|
|
|
* krieiter <krieiter@gmail.com>
|
2014-05-07 23:23:41 -04:00
|
|
|
* Mark Palmeri <mlp6@duke.edu>
|
2015-01-18 08:30:38 -05:00
|
|
|
* `Pawel 'l0ner' Soltys`_ <pwslts@gmail.com>
|
2013-06-09 22:57:37 -04:00
|
|
|
|
2009-09-11 02:13:33 -04:00
|
|
|
|
2010-02-25 12:13:59 -05:00
|
|
|
.. _tmux: http://tmux.sourceforge.net/
|
2013-04-04 19:52:38 -04:00
|
|
|
.. _CMake: http://www.cmake.org
|
2010-02-25 12:13:59 -05:00
|
|
|
.. _`project homepage`: http://github.com/thewtex/tmux-mem-cpu-load
|
2015-09-30 15:25:04 -04:00
|
|
|
.. _`Antigen`: https://github.com/zsh-users/antigen
|
2013-05-03 14:28:12 -04:00
|
|
|
.. _`terminals with 256 color support`: http://misc.flogisoft.com/bash/tip_colors_and_formatting#terminals_compatibility
|
2015-01-18 08:30:38 -05:00
|
|
|
.. _`Pawel 'l0ner' Soltys` : http://l0ner.github.io/
|