forked from cristianstu/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
92 lines (68 loc) · 2.78 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
#Change prefix to Ctrl + a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
########## Copy #############
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
#Copy to clipboard
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
########## Shortcuts ########
# Vertical split (Open pane on Left - Conflicts with Yakuake) "ALT + L"
bind -n M-l split-window -h -c "#{pane_current_path}"
# Horizontal split (Open pane on Top - Conflicts with Yakuake) "ALT + T"
bind -n M-t split-window -c -c "#{pane_current_path}"
# Move between panes "ALT + ARROWS"
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
# Resize panes "F11 -> ALT + ARROWS"
bind -r M-LEFT resize-pane -L 5
bind -r M-RIGHT resize-pane -R 5
bind -r M-UP resize-pane -U 5
bind -r M-DOWN resize-pane -D 5
# Change current pane layout "ALT + SPACE"
bind -n M-SPACE next-layout
# Move between tabs "CTRL + (LEFT|RIGHT)_ARROW"
bind -n C-RIGHT next-window
bind -n C-LEFT previous-window
# Go to first / last tab "CTRL + DOWN_ARROW"
bind -n C-DOWN last-window
# Open new tab "ALT + N"
bind -n M-n new-window -c "#{pane_current_path}"
# Close current tab "ALT + w" (Same as internet browsers)
bind -n M-w kill-window
# Close current pane "ALT + e"
bind -n M-e kill-pane
######### Status bar #################
#status bar colors
set -g status-bg black
set -g status-fg white
# alignment settings
set-option -g status-justify centre
# status left options
set-option -g status-left '#[fg=green][#[bg=black,fg=cyan]#S#[fg=green]]'
set-option -g status-left-length 20
# window list options
setw -g automatic-rename off
set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
set-window-option -g window-status-current-format '#[bg=blue,fg=colour230,bold]#I#[bg=blue,fg=colour230]:#[fg=colour230]#W#[fg=dim]#F'
set -g base-index 1
set-option -g allow-rename off
# status right options
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
# set -g status-right '#[fg=green][#{battery_status_fg}#{battery_icon}#{battery_percentage} #[fg=cyan]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
######## Mouse integration ##########
set -g mouse on
####### List of plugins ############
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'tmux-plugins/tmux-battery'
# set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set-option -g default-shell /usr/bin/zsh
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'