36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# 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 ' #($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
|
|
set-window-option -g window-status-separator ''
|
|
set-window-option -g window-status-format '#[bg=black,fg=#555555] #I #W '
|
|
set-window-option -g window-status-current-format '#[bg=black,fg=brightblack] #I #W '
|
|
|
|
# Switching panes should change the foreground color but not border colors.
|
|
set -g window-style 'bg=default,fg=#ababab'
|
|
set -g window-active-style 'bg=default,fg=white'
|
|
set -g pane-border-style 'bg=default,fg=black'
|
|
set -g pane-active-border-style 'bg=default,fg=black'
|