This plugin is a tmux plugin to monitor storage usage.
-
Add my plugin to the list of tpm plugins in your
.tmux.conf
.set -g @plugin 'narugit/tmux-storage-status'
-
prefix+I to fetch the plugin and source it.
Add any of the supported format strings to the status-right
tmux option.
set -g status-right 'Storage: #{storage_status}'
Default output is available storage, 12G/512G
.
To customize the output, please change storage_view_tmpl
.
If you want to output (SSD)free: 60G | used: 452G | total: 512G
, set like below.
set -g @storage_view_tmpl '(SSD)#[fg=#{storage.color}]free: #{storage.free} | used: #{storage.used} | total: #{storage.total}'
#{storage.color}
: main storage metric color#{storage.free}
: free storage size#{storage.pfree}
: free storage percentage#{storage.used}
: used storage size#{storage.pused}
: used storage percentage#{storage.total}
: total storage size