forked from debugpai-zz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
89 lines (68 loc) · 2.27 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
# improve-colors
set -g default-terminal 'xterm-256color'
set -ga terminal-overrides ',xterm-256color:Tc'
# new window opens $PWD
bind c new-window -c '#{pane_current_path}'
# vim navigation
set -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Ctrl-a instead of Ctrl-b
unbind C-b
set -g prefix C-a
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# increase scrollback lines
set -g history-limit 10000
# Mouse mode
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Changing default delay
set -sg escape-time 1
# Split remap
bind '%' split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'
# Don't show status line by default
# prefix + - will show it
# prefix + - will hide it again
set -g status on
bind - set status
# Change status bar color
set -g status-bg "#282c34"
set -g window-status-activity-attr underscore
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left " "
set -g status-right "♫ #{spotify_status} #{spotify_artist}: #{spotify_track} | #[fg=colour250]%d %b #(date +%%H:%%M) 👹 #[fg=colour250]#S"
set -g window-status-format "#[fg=colour244,bg=#282828] #I "
set -g window-status-current-format "#[fg=colour1,bg=#282828,noreverse,bold] #I "
# Activity
setw -g monitor-activity on
set -g visual-activity off/sdf
# Copy mode
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
# Toggle synchronized panes for the current window
bind S set synchronize-panes
# unbind space. I'll make my own layouts thank you very much
unbind Space
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message ".tmux.conf reloaded"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'robhurring/tmux-spotify'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'