diff --git a/tmux.conf b/tmux.conf index 1f6bced..61ce18e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,13 +1,26 @@ +# Plugind +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'thewtex/tmux-mem-cpu-load' + +# Install `tpm` if needed. +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" + +# Activate the plugins. +run -b "~/.tmux/plugins/tpm/tpm" + set-option -g status-position bottom set-option -g default-terminal "screen-256color" set-option -sa terminal-features ',xterm-256color:RGB' set-option -sg escape-time 1 set-option -g focus-events on +set -g status-interval 2 set -g status-bg black set -g status-fg brightblack set -g status-left '' -set -g status-right ' #h: #S' +set -g status-right ' #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --interval 2) | %H:%M | %d-%b-%Y' +set -g status-right-length 100 # Use normal and bright monochrome colors to show a tab line on the left. set -g status-justify left