55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
|
# tmux config
|
||
|
# largely based on spicycode's config: https://gist.github.com/spicycode/1229612
|
||
|
|
||
|
set -g base-index 1
|
||
|
set-window-option -g automatic-rename on
|
||
|
set-option -g set-titles on
|
||
|
set-option -g allow-rename on
|
||
|
|
||
|
set -g status-keys vi
|
||
|
set -g history-limit 10000
|
||
|
|
||
|
setw -g mouse on
|
||
|
setw -g mode-keys vi
|
||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
|
||
|
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
||
|
setw -g monitor-activity on
|
||
|
|
||
|
bind-key v split-window -h
|
||
|
bind-key s split-window -v
|
||
|
|
||
|
# Use Alt-arrow keys without prefix key to switch panes
|
||
|
bind -n M-Left select-pane -L
|
||
|
bind -n M-Right select-pane -R
|
||
|
bind -n M-Up select-pane -U
|
||
|
bind -n M-Down select-pane -D
|
||
|
|
||
|
# No delay for escape key press
|
||
|
set -sg escape-time 0
|
||
|
|
||
|
# Rather than constraining window size to the maximum size of any client
|
||
|
# connected to the *session*, constrain window size to the maximum size of any
|
||
|
# client connected to *that window*. Much more reasonable.
|
||
|
setw -g aggressive-resize on
|
||
|
|
||
|
# Reload tmux config
|
||
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||
|
|
||
|
# Colors
|
||
|
# How to use true colors in vim under tmux? #1246 for 2.6 and higher
|
||
|
# https://github.com/tmux/tmux/issues/1246:
|
||
|
set -g default-terminal "tmux-256color"
|
||
|
set -ga terminal-overrides ",*256col*:Tc"
|
||
|
|
||
|
# THEME
|
||
|
set -g status-bg black
|
||
|
set -g status-fg white
|
||
|
#setw -g status-style default
|
||
|
setw -g status-bg colour237
|
||
|
setw -g status-fg colour39
|
||
|
set -g status-interval 60
|
||
|
set -g status-left-length 30
|
||
|
set -g status-left '#[fg=green,bold](#S) #(whoami) '
|
||
|
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%a %H:%M#[default]'
|