This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
151 lines (111 loc) · 3.44 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
###########################
# Configuration
###########################
# increase scroll-back history
set -g history-limit 5000
# use vim key bindings
setw -g mode-keys vi
# disable mouse
#setw -g mode-mouse off
# decrease command delay (increases vim responsiveness)
set -sg escape-time 1
# increase repeat time for repeatable commands
set -g repeat-time 1500
# highlight window when it has new activity
setw -g monitor-activity on
# re-number windows when one is closed
set -g renumber-windows on
###########################
# Key Bindings
###########################
# tmux prefix
unbind C-b
set -g prefix C-t
set -g prefix C-i
# split panes
bind - split-window -v
bind | split-window -h
# reload tmux's config file
bind T resize-pane -D 5
bind p source-file ~/.tmux.conf \; display "Reloaded"
###########################
# Vimification
###########################
# moving threw different panes
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# selecting next/previous window
bind -r C-c select-window -t :-
bind -r C-r select-window -t :+
# resizing panes
bind C resize-pane -L 5
bind T resize-pane -D 5
bind S resize-pane -U 5
bind R resize-pane -R 5
###########################
# Status Bar
###########################
# enable UTF-8 support in status bar
set -g status-utf8 on
# set refresh interval for status bar
set -g status-interval 30
# center the status bar
set -g status-justify left
#Test
set-window-option -g status-right-fg white
set-window-option -g status-right-bg black
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-fg black
set-window-option -g window-status-bg green
# highlight current window
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg black
# show session, window, pane in left status bar
#set -g status-left-length 40
#set -g status-left '#[fg=green]#S#[fg=blue] #I:#P#[default]'
# show hostname, date, time, and battery in right status bar
set-window-option -g status-right 'Batterie: #{battery_icon} #{battery_percentage} #{battery_remain} | Online: #{online_status} | %a %d-%h %H:%M '
#TODO au lancement fg=green; bg=black
###########################
# Colors
###########################
# color status bar
#set -g status-bg colour235
#set -g status-fg white
# set color of active pane
set -g pane-border-fg colour235
set -g pane-border-bg black
set -g pane-active-border-fg green
set -g pane-active-border-bg black
###########################
# Restauring sessions
###########################
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# for bash history (experimental)
set -g @resurrect-save-bash-history 'on'
# for pane content (experimental)
set -g @resurrect-capture-pane-contents 'on'
# automatic restore
set -g @continuum-restore 'on'
# save session every 15 minutes
set -g @continuum-save-interval '15'
###########################
# Plugins
###########################
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-online-status \
'
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'