@@ -4,12 +4,13 @@ Enables displaying CPU and GPU information in Tmux `status-right` and `status-le
44Configurable percentage and icon display.
55
66## Installation
7+
78### Installation with [ Tmux Plugin Manager] ( https://github.com/tmux-plugins/tpm ) (recommended)
89
910Add plugin to the list of TPM plugins in ` .tmux.conf ` :
1011
1112``` shell
12- set -g @plugin ' tmux-plugins/tmux-cpu '
13+ set -g @plugin ' tmux-plugins/tmux-hardware '
1314```
1415
1516Hit ` prefix + I ` to fetch the plugin and source it.
@@ -21,7 +22,7 @@ If format strings are added to `status-right`, they should now be visible.
2122Clone the repo:
2223
2324``` shell
24- $ git clone https://github.com/tmux-plugins/tmux-cpu ~ /clone/path
25+ $ git clone https://github.com/tmux-plugins/tmux-hardware ~ /clone/path
2526```
2627
2728Add this line to the bottom of ` .tmux.conf ` :
@@ -42,13 +43,13 @@ If format strings are added to `status-right`, they should now be visible.
4243### Optional requirements (Linux, BSD, OSX)
4344
4445- ` iostat ` or ` sar ` are the best way to get an accurate CPU percentage.
45- A fallback is included using ` ps -aux ` but could be inaccurate.
46+ A fallback is included using ` ps -aux ` but could be inaccurate.
4647- ` free ` is used for obtaining system RAM status.
4748- ` lm-sensors ` is used for CPU temperature.
4849- ` nvidia-smi ` is required for GPU information.
49- For OSX, ` cuda-smi ` is required instead (but only shows GPU memory use rather than load).
50- If "No GPU" is displayed, it means the script was not able to find ` nvidia-smi ` /` cuda-smi ` .
51- Please make sure the appropriate command is installed and in the ` $PATH ` .
50+ For OSX, ` cuda-smi ` is required instead (but only shows GPU memory use rather than load).
51+ If "No GPU" is displayed, it means the script was not able to find ` nvidia-smi ` /` cuda-smi ` .
52+ Please make sure the appropriate command is installed and in the ` $PATH ` .
5253
5354## Usage
5455
@@ -77,6 +78,7 @@ This is done by introducing 12 new format strings that can be added to
7778- ` #{cpu_temp} ` - will show CPU temperature (averaged across cores)
7879- ` #{cpu_temp_bg_color} ` - will change the background color based on the CPU temperature
7980- ` #{cpu_temp_fg_color} ` - will change the foreground color based on the CPU temperature
81+ - ` #{host_ip} ` - will change the ip of hostname
8082
8183GPU equivalents also exist:
8284
@@ -92,6 +94,7 @@ GPU equivalents also exist:
9294- ` #{gpu_temp} ` - will show GPU temperature (average across devices)
9395- ` #{gpu_temp_bg_color} ` - will change the background color based on the GPU temperature
9496- ` #{gpu_temp_fg_color} ` - will change the foreground color based on the GPU temperature
97+ - ` #{gpu_name} ` - will change the name of GPU
9598
9699## Examples
97100
0 commit comments