-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
70 lines (53 loc) · 2.19 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
# Make the terminal support 256 color.
set -g default-terminal "screen-256color"
# Enable vi navigation on copy mode.
setw -g mode-keys vi
# Enable mouse scroll.
set -g mouse on
# Increase buffer size.
set -g history-limit 5000
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Bindings for copy paste.
bind P paste-buffer
OSX_SELECTION="bind-key -T copy-mode-vi 'v' send -X begin-selection"
OSX_COPY="bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy"
OSX_ESCAPE="bind-key -T copy-mode-vi Escape send -X cancel"
OSX_RECTANGLE="bind-key -T copy-mode-vi 'r' send -X rectangle-toggle"
UBUNTU_SELECTION="bind-key -t vi-copy 'v' begin-selection"
UBUNTU_COPY='bind -t vi-copy y copy-pipe "xclip -sel clip -i"'
UBUNTU_ESCAPE="bind-key -t vi-copy 'Escape' cancel"
UBUNTU_RECTANGLE="bind-key -t vi-copy 'r' rectangle-toggle"
if-shell "uname | grep -q Darwin" $OSX_SELECTION $UBUNTU_SELECTION
if-shell "uname | grep -q Darwin" $OSX_COPY $UBUNTU_COPY
if-shell "uname | grep -q Darwin" $OSX_ESCAPE $UBUNTU_ESCAPE
if-shell "uname | grep -q Darwin" $OSX_ESCAPE $UBUNTU_RECTANGLE
# Customize status bar. Show battery percentage and date.
set -g status-right '#($HOME/.scripts/battery.sh) #(date +"%a %Y-%m-%d %X")'
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green