dotfiles/tmux/.config/tmux/tmux.conf

62 lines
1.5 KiB
Plaintext

# remap prefix from 'C-b' to 'C-a'
unbind C-b
# set-option -g prefix C-a
# bind-key C-a send-prefix
set-option -g prefix '`'
bind-key '`' send-prefix
# mouse scrolling
setw -g mouse on
# 0 is too far from Ctrl-a.
set -g base-index 1
# 1-indexed panes to match the windows.
setw -g pane-base-index 1
# Look nice.
set -g default-terminal screen-256color
# 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 ~/.config/tmux/tmux.conf\; display ' Reloaded tmux config.'
# # switch panes using Alt-arrow without prefix
# bind -n M-Left select-pane -L
# bind -n M-Right select-pane -R
# bind -n M-Up select-pane -U
# bind -n M-Down select-pane -D
# Shift + arrow key to move between windows.
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
# Faster Esc
set-option -sg escape-time 10
# Plugins
set -g @plugin 'tmux-plugins/tpm' # tmux plugin manager
# # Things to plugin
# set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'powerline/default/yellow'
# source ~/.config/tmux/statusline.conf
set -g @plugin 'xamut/tmux-weather'
set-option -g status-right "#{weather}"
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-strategy-nvim 'session'
# initializes tmux plugin manager - keep this at the bottom
run '~/.config/tmux/plugins/tpm/tpm'