55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
|
set -g prefix C-a
|
||
|
bind C-a send-prefix
|
||
|
unbind C-b
|
||
|
|
||
|
# General ----------------------------------------------
|
||
|
|
||
|
set -g default-terminal "screen-256color"
|
||
|
set -ga terminal-overrides ",alacritty:RGB"
|
||
|
|
||
|
set -sg escape-time 1
|
||
|
set -g base-index 1
|
||
|
setw -g pane-base-index 1
|
||
|
|
||
|
# set -g mouse on
|
||
|
|
||
|
set -g mode-keys vi
|
||
|
set -g history-limit 10000
|
||
|
|
||
|
# Display ----------------------------------------------
|
||
|
|
||
|
set -g monitor-activity on
|
||
|
set -g visual-activity off
|
||
|
|
||
|
# Binds ------------------------------------------------
|
||
|
|
||
|
bind r source-file ~/.config/tmux/tmux.conf \; display '~/.config/tmux/tmux.conf sourced'
|
||
|
|
||
|
bind Escape copy-mode
|
||
|
unbind p
|
||
|
bind p paste-buffer
|
||
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||
|
bind-key -T copy-mode-vi 'Space' send -X halfpage-down
|
||
|
bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
|
||
|
|
||
|
bind | split-window -h
|
||
|
bind - split-window -v
|
||
|
unbind '"'
|
||
|
unbind %
|
||
|
|
||
|
bind h select-pane -L
|
||
|
bind j select-pane -D
|
||
|
bind k select-pane -U
|
||
|
bind l select-pane -R
|
||
|
|
||
|
# Status Bar -------------------------------------------
|
||
|
|
||
|
set -g status-style bg=default
|
||
|
set -g message-style fg=yellow,bg=default
|
||
|
set -g status-left-length 50
|
||
|
set -g status-left '#[fg=#000000,bg=#dddddd,bold] #S #[fg=default,bg=default,nobold]'
|
||
|
set -g status-right ''
|
||
|
set -g window-status-format '#[fg=default,bg=default] #I:#W #[fg=default,bg=default]'
|
||
|
set -g window-status-current-format '#[fg=#ffe100,bg=default,bold] #I:#W #[default]'
|