-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmux.conf
104 lines (72 loc) · 2.77 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
# -- general --
set -g default-terminal "screen-256color"
tmux_conf_theme_24b_colour=true
set -s escape-time 10 # faster command seqs
set -s focus-events on # apps running in tmux get focus events
set -q -g status-utf8 on
setw -q -g utf8 on
set -g history-limit 5000
# edit config hack
bind e new-window -n "~/.tmux.conf" "sh -c '\${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'"
# reload config file changes
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# -- display --
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000 # slightly longer status messages display time
set -g status-interval 5 # redraw status line every 10 seconds
# clear both screen and history
bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
# silence a lot of junk
set -g monitor-activity on
set -g visual-activity off
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g bell-action none
# -- navigation --
# split panes with | and -
bind | split-window -h # split vertically
bind - split-window -v # split horizontally
unbind '"'
unbind %
# pane navigation
bind h select-pane -L # move left
bind j select-pane -D # move down
bind k select-pane -U # move up
bind l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# mouse control
set -g mouse on
# #########
# design stuff
# #########
# panes
set -g pane-border-style "bg=#303030,fg=#303030"
set -g pane-active-border-style "bg=#303030,fg=#00afff"
# status bar
set -g status-justify left
set -g status-style 'bg=#404040,fg=#007fcf'
set -g message-style "bg=#b0b0b0,fg=#202020"
set -g message-command-style "fg=blue bg=black"
# window mode
setw -g mode-style "fg=#ff9999"
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=yan]#[fg=olour8] #W"
setw -g window-status-current-format "#[fg=#b0bfbf]#[bg=#505050] #W "
setw -g window-status-current-style 'fg=colour1 bg=colour19'
# setw -g window-status-style "bg=green fg=black attr=reverse"
# info on left
set -g status-left ''
run-shell "~/.tmux-power.tmux"