Skip to content

pwittchen/tmux-plugin-cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 (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