-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
112 lines (85 loc) · 2 KB
/
tmux.conf
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
##
# General options
##
set -g default-terminal "screen-256color"
set -g bell-action none
set -sg escape-time 1
set -g default-command /bin/zsh
set -g default-shell /bin/zsh
# I love Vi[m]
set-window-option -g mode-keys vi
#set-window-option -g mode-mouse on
##
# Key bindings
##
unbind C-b
set -g prefix C-a
# copy-paste in X
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
# send prefix to nested tmux session
bind-key a send-prefix
# control over panes
unbind %
bind-key | split-window -h
bind-key _ split-window -v
bind-key -r k resize-pane -U +4
bind-key -r j resize-pane -D +4
bind-key -r h resize-pane -L +4
bind-key -r l resize-pane -R +4
unbind o
bind o swap-pane -U
# movement between panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# kill pane
bind -n M-x kill-pane
# movement between windows
bind -n M-p previous-window
bind -n M-n next-window
bind C-a last-window
# shortcuts for common actions
bind v new-window vim
bind m new-window "mutt -R"
unbind t
bind t new-window htop
# copy/paste
bind y copy-mode
bind P paste-buffer
# reload config
bind r source-file ~/.tmux.conf
##
# Status bar
##
set-option -g status-keys vi
# colors
set -g status-bg default
set -g status-fg white
set -g window-status-format "#I #W"
set -g window-status-current-fg white
set -g window-status-current-bg blue
set -g window-status-current-attr underscore,bold
set -g window-status-current-format "#I #W"
setw -g monitor-activity on
set -g visual-activity on
# text
set-option -g status-justify centre
set-option -g status-interval 2
set-option -g status-left "·#[fg=cyan]#S#[fg=white]·"
set-option -g status-right "#[fg=red]#(battery)"
# window titles
set -g set-titles on
setw -g automatic-rename
set -g base-index 1
##
# Panes
##
setw -g pane-base-index 1
# borders
set pane-active-border-fg '#dd0066'
##
# Sessions
##
bind -n M-Tab switch-client -n