Home

Awesome

Workspace usage plugin for tmux

Displays the memory and CPU usage of your workspace processes in the tmux status bar.

<img width="1512" alt="image" src="https://github.com/user-attachments/assets/c2a060e0-7124-4761-98a5-9f92eea94d0c">

Features

Installation

  1. Using TPM, add the following line to your ~/.tmux.conf file:
set -g @plugin 'sjdonado/tmux-workspace-usage'

Note: The above line should be before run '~/.tmux/plugins/tpm/tpm'

  1. Then press tmux-prefix + <kbd>I</kbd> (capital i, as in Install) to fetch the plugin as per the TPM installation instructions

Configuration

Example:

# Set the processes to monitor, customize this as needed (default is 'tmux')
set -g @workspace_usage_processes 'tmux|nvim|mason'

# Enable memory and CPU usage display (default is 'on')
set -g @workspace_usage_mem 'on'
set -g @workspace_usage_cpu 'on'

# Set the interval delay in seconds, updates every 20 seconds if @status-interval is 15 (default is 0)
set -g @workspace_usage_interval_delay 5

# Add the plugin output to status-right
set -g status-right '#{workspace_usage}'

License

MIT