dotfiles/.tmux.conf

58 lines
1.5 KiB
Plaintext

# Basic options
set -g history-limit 100000
set -g mouse on
set -g mode-keys vi
set -g set-clipboard on
set -g default-shell /usr/local/bin/fish
set -g default-terminal "tmux-256color"
# Reloading config on the fly
unbind r
bind r source-file ~/.tmux.conf \; display "Configuration reloaded."
# Create panes more easily
unbind %
unbind '"'
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# Navigate panes more easily
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Control windows more easily
unbind n
unbind w
bind n command-prompt "rename-window '%%'"
bind w new-window
bind -n C-S-Left swap-window -t -1\; select-window -t -1
bind -n C-S-Right swap-window -t +1\; select-window -t +1
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# Style
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g bell-action none
set -g monitor-activity off
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=colour252 fg=colour235'
set -g status-left ' '
set -g status-left-length 20
set -g status-right '#(~/.local/bin/tmux-bar)'
set -g status-right-length 60
set -g window-status-style 'bg=colour252 fg=colour235'
set -g window-status-format '[#I]#W#F'
set -g window-status-current-style 'bg=colour254 bold'
set -g window-status-current-format '#[fg=colour235][#I]#W#F'
set -g window-status-bell-style 'fg=colour1 bold'
set -g message-style 'fg=colour232 bg=colour15 bold'