-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
123 lines (102 loc) · 3.65 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
# Prefix to C-a
set -g prefix C-a
unbind C-b
# Fix the problem where tmux prints "1;2c"
set -sg escape-time 1
# Allows for faster key repitition
set -s escape-time 0
# Ensure that we can send Ctrl-A to other apps
bind C-a send-prefix
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# splitting panes
bind | split-window -h
bind - split-window -v
bind Space last-window
bind C-Space switch-client -l
# COLORS
set -g default-terminal "screen-256color"
# alerts
setw -g monitor-activity on
set -g visual-activity on
# set the status line's colors
#set -g status-fg white
#set -g status-bg black
# set the color of the window list
#setw -g window-status-fg cyan
#setw -g window-status-bg default
#setw -g window-status-attr dim
## CHECK
# set colors for the active window
# START:activewindowstatuscolor
#setw -g window-status-current-fg white
#setw -g window-status-current-bg red
#setw -g window-status-current-attr bright
# END:activewindowstatuscolor
# pane colors
#START:panecolors
#set -g pane-border-fg green
#set -g pane-border-bg black
#set -g pane-active-border-fg white
#set -g pane-active-border-bg yellow
#END:panecolors
#set -g pane-colors fg=black,bg=black
#set -g pane-border-lines
# pane borders
set -g pane-border-lines heavy
set -g pane-active-border-style bg=default,fg=colour31
set -g pane-border-style fg=default
# Command / message line
# START:cmdlinecolors
#set -g message-fg white
#set -g message-bg black
#set -g message-attr bright
# END:cmdlinecolors
# Status line left side
# START:statusleft
#set -g status-left-length 40
#set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# END:statusleft
#START:utf8
#set -g status-utf8 on
#END:utf9
# Center the window list
# START:centerwindowlist
#set -g status-justify centre
# END:centerwindowlist
# Enable mouse
set -g mouse on
source ~/.bin/tmux.powerline.conf
set-option -g default-terminal "screen-256color"
#set-option -g default-command "reattach-to-user-namespace -l zsh"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
##bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind-key -T copy-mode-vi Enter
##bind-key -T copy-mode-vi Enter send-keys -X "reattach-to-user-namespace pbcopy"
# Status bar settings adapted from powerline
set -g status on
set -g status-interval 10
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 20
set -g status-left '#{?client_prefix,#[fg=colour254]#[bg=colour31]#[bold],#[fg=colour16]#[bg=colour254]#[bold]} #S #{?client_prefix,#[fg=colour31]#[bg=colour234]#[nobold],#[fg=colour254]#[bg=colour234]#[nobold]}>'
set -g status-right '#(eval cut -c3- ~/.tmux.conf | sh -s status_right) #h '
set -g status-right-length 150
set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240]🌑 #[default]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I 🌕 #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set -g window-status-bell-style fg=colour200
set -g window-status-activity-style fg=colour150
set -g window-status-last-style fg=colour31
#set-window-option -g window-status-fg colour249
#set-window-option -g window-status-activity-attr none
#set-window-option -g window-status-bell-attr none
#set-window-option -g window-status-activity-fg yellow
#set-window-option -g window-status-bell-fg red