-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
139 lines (113 loc) · 3.54 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
set-option -g default-shell $SHELL
set -g default-terminal "screen-256color"
unbind C-b
set-option -g prefix C-a
bind a send-prefix
bind C-a last-window
set -g history-limit 10000
# start window numbering at 1
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows on close
set -g renumber-windows
# delay between characters
set -s escape-time 0
# status bar
set-window-option -g window-status-current-style bg=blue
#notifications
setw -g monitor-activity on
set -g visual-activity on
# Automatically set window title
#setw -g automatic-rename
bind r source-file ~/.tmux.conf
#bind ^A select-pane -t :.+
# mouse support
set -g mouse on
#bind -t vi-copy WheelUpPane page-up
#bind -t vi-copy WheelDownPane page-down
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# copy-paste
unbind [
unbind ]
unbind p
bind Escape copy-mode
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
# Copy tmux to CLIPBOARD
#bind-key -t vi-copy y copy-pipe "xsel -i -p -b"
bind-key p run-shell "xsel -o | tmux load-buffer - ; tmux paste-buffer";
# keybindings to make resizing easier
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# Easy splitting
unbind %
unbind '"'
bind-key '\' split-window -h
bind-key - split-window -v
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind C-c run "tmux show-buffer | xsel -i -b"
# source-file tmuxline
# --- colors
## default statusbar colors
#set -g status-bg black
#set -g status-fg yellow
#set -g status-attr default
#
## default window title colors
#setw -g window-status-fg blue
#setw -g window-status-bg default
#
## active window title colors
#setw -g window-status-current-fg yellow
#setw -g window-status-current-bg default
#setw -g window-status-current-attr dim
#
## pane border
#set -g pane-border-fg black
#set -g pane-border-bg default
#set -g pane-active-border-fg red
#set -g pane-active-border-bg default
#
## command line/message text
#set -g message-bg black
#set -g message-fg yellow
#
## pane number display
#set -g display-panes-active-colour yellow
#set -g display-panes-colour brightblue
#
## clock
#setw -g clock-mode-colour yellow
## --- end colors
set -g status 'on'
set -g status-style bg='black'
set -g status-justify 'left'
set -g status-left-length '100'
set -g status-right-length '100'
#set -g status-left-attr 'none'
#set -g status-right-attr 'none'
#set -g status-attr 'none'
set -g message-style bg='colour238',fg='colour144'
set -g message-command-style bg='colour237',fg='colour144'
set -g pane-border-style fg='colour237'
set -g pane-active-border-style fg='colour27'
setw -g window-status-separator ''
set -g status-left '#[fg=colour15,bg=colour27] #S #[default]#[fg=colour27,bg=black]'
#set -g status-right '#[default]#[fg=colour237,bg=black]#[fg=colour144,bg=colour237] %Y-%m-%d %H:%M #[default]#[fg=colour27,bg=colour237]#[fg=colour15,bg=colour27] #h '
set -g status-right '#[default]#[fg=colour27,bg=black]#[fg=colour15,bg=colour27] %Y-%m-%d %H:%M'
setw -g window-status-format '#[fg=blue,bg=black] #I #[fg=blue,bg=black] #W '
setw -g window-status-current-format '#[default]#[fg=black,bg=yellow]#[fg=black,bg=yellow] #I #[fg=black,bg=yellow] #W #[default]#[fg=yellow,bg=black]'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin 'tmux-plugins/tmux-sidebar'
# Initialize TMUX plugin manager
run -b '~/.tmux/plugins/tpm/tpm'