dotfiles/tmux/.tmux.conf

32 lines
957 B
Plaintext

set -sa terminal-features ",screen-256colo*:RGB"
set-option -g default-terminal "screen-256color"
set-option -g focus-events on
set -s escape-time 0
unbind C-b
set-option -g prefix C-l
bind-key C-l send-prefix
set -g repeat-time 1000
set -g status-style 'bg=#333333 fg=#5eacd3'
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y #(tms sessions)"
bind r source-file ~/.tmux.conf
set -g base-index 1
bind C-o display-popup -E "tms"
bind C-l display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
bind C-r "run-shell 'tms refresh'"
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
bind -r a last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
set -g mouse on