Displays a tmux status line with the CPU utilization for the last 20 seconds, and the current memory usage.
Example (using nerd-fonts):
█████▇█████████████▇▇████▇▇▇▇█ 56629M 08:01
cargo install tmuxstatus
Add the following to your ~/.tmux.conf
:
set -g status-interval 1
set -g status-right "#(tmuxstatus ~/.tmux-status) %H:%M "
set -g status-right-length "60"
Creates a daemon on first use to avoid overhead. New invocations query this daemon so the overhead is reduced.
The overhead can be further reduced if tmux supports directly reading a status line using UNIX domain sockets instead of spawning a process.