dotfiles/.tmux.conf

75 lines
1.9 KiB
Bash

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config!'
# switch panes using Alt-arrow without prefix
set -s escape-time 0 # Disable esc=alt
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -U
bind -n M-k select-pane -D
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Don't rename windows automatically
set-option -g allow-rename off
######################
### DESIGN CHANGES ###
######################
set -g @plugin 'tinted-theming/base16-tmux'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @colors-base16 'dracula'
set -g status-interval 1
# loud or quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# modes
setw -g mode-style 'bold'
# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style 'dim'
set -g status-left ' #S | '
set -g status-right '%F %H:%M:%S #[fg=color100,bg=color237] #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --interval 1 --mem-mode 0 --averages-count 0) #[fg=color82,bg=color236,bold] #H '
set -g status-right-length 80
set -g status-left-length 20
setw -g window-status-current-style 'bold'
setw -g window-status-current-format '#[fg=color3]#I:#W#F '
setw -g window-status-format '#I:#W#F '
setw -g window-status-bell-style 'bold'
# messages
set -g message-style 'bold'
#######################
### /DESIGN CHANGES ###
#######################
# Plugin manager
# If plugin installation does not work, run $TPM/bin/install_plugins
set -g @plugin 'tmux-plugins/tpm'
run '~/.tmux/plugins/tpm/tpm'