-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
116 lines (85 loc) · 3.15 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
113
114
115
###
### DO NOT TOUCH THE LINES BELOW! ###
###
# This will fix Home/End keys in Vim. There are also 2 lines in zshrc that are required.
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
# True color support
# Please do not touch these. The tmux-256color is the recommended option in newer Tmux versions. Kitty requires the -a parameter.
set -ga terminal-overrides ",xterm*:Tc"
set -g default-terminal "tmux-256color"
# Without this line Ctrl + L will not work
set -as terminal-overrides ',*:indn@'
###
### DO NOT TOUCH THE LINES ABOVE! ###
###
# Enable focus events (required for Vim's mouse augroup)
set -g focus-events on
# Enable mouse mode
set -g mouse on
# Lower the escape time when pressing Esc (default: 500 ms)
set -sg escape-time 10
# Set terminal title to "<Session> / <Window>"
set-option -g set-titles on
set-option -g set-titles-string "#S / #W"
# Increase history limit to 20k from 2k
set-option -g history-limit 100000
# switch panes using Alt-arrow without prefix
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
# Reload configurations
unbind r
bind r source-file ~/.tmux.conf
# Start from 1 instead of 0, as 0 is on the other side of they keyboard
set -g base-index 1
setw -g pane-base-index 1
######################
### DESIGN CHANGES ###
######################
# panes
## Status bar design
# status line
set -g status-justify left
set -g status-interval 2
# messaging
set -g message-command-style fg=blue,bg=black
#window mode
# 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
setw -g mode-style bg=colour6,fg=colour0,bold,fg=colour196,bg=colour238
# }
# The panes {
set -g pane-border-style fg=black,bg=colour235,fg=colour238
set -g pane-active-border-style fg=brightred,bg=colour236,fg=colour51
# }
# The statusbar {
set -g status-position bottom
set -g status-style bg=default,fg=colour12,bg=colour234,fg=colour137,dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] #S #I:#P #[fg=colour233,bg=colour245,bold]'
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style bg=colour0,fg=colour11,dim,fg=colour81,bg=colour238,bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style bg=green,fg=black,reverse,fg=colour138,bg=colour235,none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style bold,fg=colour255,bg=colour1
# }
# The messages {
set -g message-style fg=black,bg=yellow,bold,fg=colour232,bg=colour166
# }