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
- Host: GitHub
- URL: https://github.com/pwittchen/tmux-plugin-cpu
- Owner: pwittchen
- License: apache-2.0
- Created: 2017-08-06T12:52:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T06:05:58.000Z (almost 7 years ago)
- Last Synced: 2025-05-21T09:11:25.449Z (about 1 year ago)
- Topics: cpu, linux, macos, plugin, tmux, tmux-plugin
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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