linux-config/files/dotfiles/tmux.conf

69 lines
1.8 KiB
Text
Raw Normal View History

2021-11-18 08:59:41 +00:00
# Send prefix - Ctrl+a
2021-10-22 11:45:20 +00:00
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
2021-11-18 08:59:41 +00:00
# Use Alt+[hjkl] to switch panes - also (esc - h|j|k|l)
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
2021-10-22 11:45:20 +00:00
2021-11-18 08:59:41 +00:00
# <prefix>-h|l|Left|Right
bind-key h previous-window
2021-12-13 13:53:19 +00:00
bind-key Left previous-window
2021-11-18 08:59:41 +00:00
bind-key l next-window
2021-12-13 13:53:19 +00:00
bind-key Right next-window
2021-10-22 11:45:20 +00:00
# Mouse mode
setw -g mouse on
# Set easier window split keys
bind-key | split-window -h -c "#{pane_current_path}"
bind-key \\ split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# close window with <prefix-q>
bind-key q kill-window
# refresh window with <prefix-e>
bind-key e respawn-window -k
# <prefix>-j/k for up down (useful to move between history commands)
bind-key k send-keys Up
bind-key j send-keys Down
2021-10-22 11:45:20 +00:00
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
############################
# Themes
###########################
# Nord theme
set -g @plugin "arcticicestudio/nord-tmux"
# Gruvbox Theme
# set -g @plugin 'egel/tmux-gruvbox'
# set -g @tmux-gruvbox 'dark' # or 'light'
# Tmux yank (For clipboard integration)
set -g @plugin 'tmux-plugins/tmux-yank'
# Mouse select to clipboard
set -g @yank_selection_mouse 'clipboard' # or 'primary' or 'secondary'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Buffer line size (History)
set -g history-limit 5000
# Use Ctrl-K to clear buffer
bind -n C-k clear-history
# Default Colors
set -g default-terminal "xterm-256color"
2021-11-18 08:59:41 +00:00
# Home/End support
bind -n End send-key C-e
bind -n Home send-key C-a
# Set active pane border background
set-option -g pane-active-border-style bg=#8abeb7