-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
85 lines (66 loc) · 2.72 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
set-option -sg escape-time 10
set-option -g focus-events on
set-option -a terminal-features 'xterm-256color:RGB'
set -g mouse on
#setw -g mode-keys vi
set-window-option -g mode-keys vi
unbind -T copy-mode-vi 'v'
unbind -T copy-mode-vi 'y'
unbind -T copy-mode-vi MouseDragEnd1Pane
unbind -T copy-mode-vi Enter #this is the default binding for copy (but not to system clipboard)
#(many tried, only this worked)
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 -selection c'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -selection c'
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -selection c'
set-option -g history-limit 5000
bind -n M-Up resize-pane -U 15
bind -n M-Down resize-pane -D 15
bind -n M-Left resize-pane -L 15
bind -n M-Right resize-pane -R 15
bind | split-window -h -c '#{pane_current_pane}'
bind - split-window -v -c '#{pane_current_pane}'
unbind %
unbind '"'
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
######################
#### DESIGN CHANGES ###
#######################
## Status bar design
# status line
set -g status-justify left
set -g status-bg default
set -g status-fg colour12
set -g status-interval 2
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
# Info on left (I don't have a session display for now)
set -g status-left ''
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# The modes
setw -g clock-mode-colour colour135
# The statusbar
%hidden STATUS_BAR_BG_COLOR=colour234
#%hidden STATUS_BAR_FG_COLOR=colour234
%hidden STATUS_BAR_FOCUSED_BG_COLOR=colour237
#%hidden STATUS_BAR_FOCUSED_FG_COLOR=colour250
set -g status-position bottom
set -g status-bg $STATUS_BAR_BG_COLOR
set -g status-fg colour137
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-format ' #[bg=#{STATUS_BAR_FOCUSED_BG_COLOR}]#I#[fg=colour250, bg=#{STATUS_BAR_FOCUSED_BG_COLOR}]:#[fg=colour255, bg=#{STATUS_BAR_FOCUSED_BG_COLOR}]#W#[fg=colour50, bg=#{STATUS_BAR_FOCUSED_BG_COLOR}]#F#[bg=#{STATUS_BAR_BG_COLOR}] '
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '