An open API service indexing awesome lists of open source software.

https://github.com/pwittchen/tmux-plugin-cpu

tmux plugin showing CPU usage
https://github.com/pwittchen/tmux-plugin-cpu

cpu linux macos plugin tmux tmux-plugin

Last synced: about 2 months ago
JSON representation

tmux plugin showing CPU usage

Awesome Lists containing this project

README

          

# tmux-plugin-cpu
tmux plugin showing CPU usage

Requirements
------------

This plugin requires `mpstat` program. It can be installed with `sysstat` package.
On Debian/Ubuntu, you can install it as follows:

```
sudo apt-get install sysstat
```

or

```
pacman -S sysstat
```

Installation
------------
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)

Add plugin to the list of TPM plugins in `.tmux.conf`:

```
set -g @plugin 'pwittchen/tmux-plugin-cpu'
```

Hit `prefix + I` to fetch the plugin and source it.

If format strings are added to `status-right`, they should now be visible.

Customization
-------------

Please note, script used in this plugin may behave differently on different computers. In case you get wrong results, cusomize manually variable here: https://github.com/pwittchen/tmux-plugin-cpu/blob/master/scripts/cpu.sh#L9 . Sometimes it may be `$12`, sometimes `$13` depending on `mpstat` output on your comuputer. Please, customize it according to your setup.

Usage
-----

In order to see CPU usage via this tmux plugin, add the following command to your `.tmux.conf` file:

```
#{cpu}
```

References
----------
- https://github.com/tmux-plugins
- https://github.com/tmux-plugins/tmux-example-plugin
- https://github.com/tmux-plugins/tmux-battery
- https://github.com/pwittchen/dotfiles