-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
92 lines (70 loc) · 2.38 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
### Tmux config ###
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# change delay of sending commands
set -sg escape-time 0
set-option -g focus-events on
# Set windows/panes index to start at 1
set -g base-index 1
set -g pane-base-index 1
# change bindings for spliting windows
bind | split-window -h
bind - split-window -v
# use vim keys to change pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vim keys to cycle through windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Multiple sessions connected to the same window group only resize if pointing
# at the same window
#set-window-option -g aggressive-resize on
# Mouse support - set to on if you want to use the mouse
setw -g mouse on
# Set the default terminal mode to 256color mode
# set -g default-terminal "xterm-256color"
# set-option -ga terminal-overrides ",xterm-256color:Tc"
# set -g default-terminal "tmux-256color"
# set-option -ga terminal-overrides ",tmux-256color:Tc"
set -g default-terminal "alacritty"
# Center the window list
set -g status-justify left
# Change refresh of status bar to every 5 seconds
set -g status-interval 2
# Add time to status bar
# Overriden by tmux-airline if present
set -g status-right "#[fg=colour252,bg=colour236] #[fg=colour16,bg=colour252]%d %b %R"
# Vi keys
setw -g mode-keys vi
# Stop processes renaming windows so tmux keeps the window name you manually set
set-option -g allow-rename off
# Source Airline
# Overrides the status bar if present
source ~/.tmux-airline
### Plugin config ###
# resurrect
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
#set -g @resurrect-save-shell-history 'on'
#set -g @resurrect-capture-pane-contents 'on'
# now-playing
set -g @now-playing-play-pause-key '.'
set -g @now-playing-stop-key '#'
# fzf session switch
bind s run-shell -b "~/.tmux-plugins/tmux-fzf/scripts/session.sh switch"
### Tmux plugins ###
run-shell ~/.tmux-plugins/tmux-resurrect/resurrect.tmux
run-shell ~/.tmux-plugins/tmux-continuum/continuum.tmux
run-shell ~/.tmux-plugins/tmux-fzf/main.tmux
run-shell ~/.tmux-plugins/tmux-now-playing/now-playing.tmux