-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
97 lines (73 loc) · 2.54 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
######################
### General config ###
######################
# Automatically set window title
setw -g automatic-rename
# Fix scrolling issues
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Scroll History
set -g history-limit 30000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
######################
### Key bindings ###
######################
# Remap prefix from 'C-b' to 'C-a'
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# toggle mouse mode to allow mouse copy/paste
# set mouse on with prefix m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# set mouse off with prefix M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# Fix CTRL+right/left to navigate between words
setw -g xterm-keys on
setw -g aggressive-resize on
# Mode-keys style for copy mode
setw -g mode-keys vi
######################
### DESIGN CHANGES ###
######################
# Set 256-colour terminal
set -g default-terminal "screen-256color"
# Info on left (I don't have a session display for now)
set -g status-left ''
# Alert when changes in other page
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
setw -g monitor-activity on
set -g visual-activity off
set -g visual-bell off
# Modes
set -g mode-style fg=colour202,bg=colour243,bold
setw -g clock-mode-colour colour135
# Panes
set -g pane-border-style bg=default,fg=colour238
set -g pane-active-border-style bg=black,fg=colour51
# Statusbar
set -g status-justify left
set -g status-interval 60
set -g status-bg default
set -g status-fg colour12
setw -g window-status-style bg=black,fg=colour138,none
setw -g window-status-format ' #I#[fg=colour237] #[fg=colour240]#W#[fg=colour240]#F '
setw -g window-status-current-style bg=colour233,fg=colour81
setw -g window-status-current-format ' #I#[fg=colour250] #[fg=colour250]#W#[fg=colour50]#F '
setw -g window-status-bell-style bg=colour1,fg=colour251,bold
set -g status-left-length 30
set -g status-right-length 200
set -g status-left '#[default]'
set -g status-right '#[fg=colour237][#[fg=white]#[fg=colour75]%d-%m-%Y #[fg=white]%H:%M#[default]#[fg=colour237]]#[fg=colour237][#[fg=colour197]#(cut -d " " -f 1-3 /proc/loadavg)#[fg=colour237]]'
# Messages
set -g message-style bg=colour166,fg=colour232,bold
set -g message-command-style bg=black,fg=blue