-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
117 lines (90 loc) · 3.62 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
116
117
#Change prefix to CTRL A - Conflicts with Byobu
unbind C-b
set -g prefix C-a
# use send-prefix to pass C-a through to application
#bind C-a send-prefix
# shorten command delay for escape key (for Vim)
set -sg escape-time 1
# increase default history limit
set-option -g history-limit 4000
# use default user shell
set-option -g default-shell $SHELL
#Pane switching with alt + arrow
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
setw -g monitor-activity on
set -g visual-activity on
set-window-option -g window-status-current-style bg=red
#Both are needed to disable auto renaming of windows
set-window-option -g automatic-rename off
set-option -g allow-rename off
# reload config file
bind r source-file ~/.tmux.conf
# Disabled mouse because it messes with mouse right clicks
#set -g mouse on
#Enable more colors
set -g default-terminal "screen-256color"
#DEPRECATED Below deprecated because using Powerline Double blue theme even below.
#source the solarized theme
#source ~/.tmuxcolors-custom.conf
#Override some colors
#set-option -g pane-active-border-fg red
#END DEPRECATED
### THEME inspired from Powerline Double Blue###
# Status update interval
set -g status-interval 2
# Basic status bar colors
set -g status-style fg=colour238,bg=colour233
# Left side of status bar
set -g status-left-style bg=colour233,fg=colour243
set -g status-left-length 40
set -g status-left "#[fg=colour232,bg=colour24,bold] #S #[fg=colour24,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233,nobold]"
# Right side of status bar
set -g status-right-style bg=colour233,fg=colour243
set -g status-right-length 150
set -g status-right "#[fg=colour132,bg=colour233]#[fg=colour232,bg=colour132] #{ssh_status} #[fg=colour235,bg=colour132]#{cpu_fg_color}#[bg=colour235] #{cpu_percentage} #[fg=colour25,bg=colour235]#[fg=colour232,bg=colour24,bold] #H "
# Window status
set -g window-status-format " #I:#W#F "
set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour33,nobold] #I:#W#F #[fg=colour233,bg=black,nobold]"
# Current window status
set -g window-status-current-style bg=colour24,fg=colour233
# Window with activity status
set -g window-status-activity-style bg=colour245,fg=colour233 # fg and bg are flipped here due to a bug in tmux
# Window separator
set -g window-status-separator ""
#Window status alignment
set -g status-justify centre
# Pane border
set -g pane-border-style bg=default,fg=colour238
# Active pane border
set -g pane-active-border-style bg=default,fg=colour24
# Pane number indicator
set -g display-panes-colour colour233
set -g display-panes-active-colour colour245
# Clock mode
set -g clock-mode-colour colour24
set -g clock-mode-style 24
# Message
set -g message-style bg=colour24,fg=black
# Command message
set -g message-command-style bg=colour233,fg=black
# Mode
set -g mode-style bg=colour24,fg=colour231
### TMUX PLUGIN MANAGER CONFIG###
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'obxhdx/tmux-ssh-status'
set -g @ssh_auto_rename_window off
set -g @plugin 'tmux-plugins/tmux-cpu'
# restore tmux sessions after reboots
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'