dotfiles/tmux/.tmux.conf

93 lines
2.3 KiB
Plaintext
Raw Normal View History

2019-03-24 15:03:56 +01:00
# Set prefix key to C-x
unbind C-b
set -g prefix C-x
bind C-x send-prefix
## set terminal bell
set -g bell-action any
2019-11-23 02:13:12 +01:00
## Set default terminal
set -g default-terminal "xterm-kitty"
set -ga terminal-overrides ",xterm-kitty:Tc"
2019-03-24 15:03:56 +01:00
# i3 split bindings
bind g split-window -h
bind v split-window -v
unbind '"'
unbind %
unbind m
# vim split navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# equalize splits with x
unbind space
bind x select-layout even-horizontal
# window switching
unbind n
unbind c
bind c new-window
unbind ,
unbind .
bind , previous-window
bind . next-window
bind-key n command-prompt "rename-window '%%'"
# change kill window bind
unbind &
bind k killp
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
set -g status on
set -g pane-base-index 1
set -g base-index 1
set -g set-titles on
set -g aggressive-resize on
set-option -g set-titles-string '#{pane_current_command}'
set-option -g visual-activity on
set-option -g status-position bottom
set-option -g renumber-windows on
set-window-option -g monitor-activity off
set-option -g allow-rename off
# copy mode
unbind [
bind Escape copy-mode
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
set -g mouse on
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
# Split
2019-11-23 02:13:12 +01:00
# Colorscheme file
source-file ~/.tmux/iceberg.tmux.conf
2019-03-24 15:03:56 +01:00
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Plugin configuration
set -g @resurrect-processes ':all:'
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15'
2019-03-26 17:00:30 +01:00
set -g @resurrect-strategy-vim 'session'
2019-08-18 10:07:32 +02:00
set -g @sessionist-goto 'M-C'
2019-03-24 15:03:56 +01:00
run '~/.tmux/plugins/tpm/tpm'