summaryrefslogtreecommitdiff
path: root/tmux/.tmux.conf
blob: 63a37990241c2215b0e2c0870b3c222b20e3c2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
unbind C-b
unbind r

bind r source-file ~/.tmux.conf
bind s send-prefix
bind C-s send-prefix
bind C-n next-window
bind C-p previous-window
bind -n C-Left  previous-window
bind -n C-Right next-window
bind P swap-window -t -1
bind N swap-window -t +1

set -sg escape-time 0
set -g prefix C-s
set -g status on
set -g mouse on
set -g allow-rename off
set -g history-limit 10000
set -g default-terminal "screen-256color"
set -g pane-border-status off  # Alternative: top/bottom/...
set -g pane-border-format "#{pane_current_command}"
set -g status-justify centre  # Center window list
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'  # Get | cursor nvim insert

set-hook -g session-created "if-shell '[ -n \""'$SSH_CONNECTION'"\" ]' 'set status-bg \"#aa4444\"' 'set status-bg \"green\"'"
set-hook -g client-attached "if-shell '[ -n \""'$SSH_CONNECTION'"\" ]' 'set status-bg \"#aa4444\"' 'set status-bg \"green\"'"


# PILOT_KEY_H=M-h
# PILOT_KEY_J=M-j
# PILOT_KEY_K=M-k
# PILOT_KEY_L=M-l
# PILOT_KEY_P=M-backslash
PILOT_IGNORE=
PILOT_BOUNDARY=ignore
PILOT_MODE=wintab
PILOT_ROOT=$HOME/dotfiles/plugins/vim-wintab
source-file $PILOT_ROOT/pilot.tmux

# Bind for clear-screen
bind C-l send-keys C-l