-
Notifications
You must be signed in to change notification settings - Fork 12
/
.tmux.conf
65 lines (52 loc) · 2.13 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
set -g default-command "$SHELL"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
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
# Enable mouse mode (tmux 2.1 and above)
# set -g mouse on
###########################
# Colors
###########################
## color status bar
#set -g status-style fg=white,bg=colour237
## color of message bar
#set -g message-style fg=white,bold,bg=black,bright
## highlight current window
#setw -g window-status-style fg=cyan,bg=colour235
#setw -g window-status-current-style fg=white,bold
## set color of active pane
#set -g pane-border-style fg=colour240,bg=black
#set -g pane-active-border-style fg=white,bg=black
#set -g default-terminal "screen-256color"
#set-option -g status on
#set-option -g status-interval 2
#set-option -g status-justify "left"
#set-option -sg escape-time 10
set-option -g default-terminal "screen-256color"
#set -g status-style fg=white,bg=default # setting this default to make it transparent (https://stackoverflow.com/questions/22303820/tmux-transparent-status-bar)
set-option -g status on
## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
set-option -g status-justify left
set-option -g status-left-style none
set-option -g status-left-length 100
#set-option -g status-right-style none
set-option -g status-right-length 100
set-window-option -g window-status-separator ""
set -g status-style fg=white,bg=colour236
set-option -g status-left "#[bg=colour245,fg=colour234] #S "
set-option -g status-right "#[bg=colour237,fg=colour246] %H:%M #[bg=colour239,fg=colour245] %d-%b-%y #[bg=colour210,fg=colour234] #h "
set-window-option -g window-status-current-format "#[bg=colour208,fg=colour234,bold] #W#{?window_zoomed_flag,*Z,} "
set-window-option -g window-status-format "#[bg=colour240,fg=colour246] #I:#W "