# 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 default-terminal "screen-256color" 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 '#(curl -s wttr.in/Trondheim\?format\="%%l:+%%c%%t") #[bg=color237] %a %b %d #[fg=color7]%H:%M #[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 ### ####################### set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on' # If plugin installation does not work, run $TPM/bin/install_plugins run '~/.tmux/plugins/tpm/tpm'