-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
38 lines (32 loc) · 1.51 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
set -g base-index 1
set -g default-terminal "screen-256color"
setw -g mode-keys vi
new-session
set -g set-titles on
set -g set-titles-string "#h - #W"
set -g message-bg blue
set -g message-fg white
setw -g mode-bg blue
setw -g mode-fg white
set -g status-bg black
set -g status-fg white
set -g status-left "∙"
set -g status-right "┆ #(tmux-applet) #h ∙"
set -g status-right-length 80
setw -g window-status-current-attr reverse
setw -g window-status-bell-attr bold
setw -g window-status-bell-bg red
setw -g window-status-content-attr bold
setw -g window-status-content-bg green
setw -g window-status-activity-attr bold
setw -g window-status-activity-bg cyan
bind -n F1 run-shell "tmux lsw | grep -q '^1:' && tmux selectw -t 1 || tmux neww -t 1"
bind -n F2 run-shell "tmux lsw | grep -q '^2:' && tmux selectw -t 2 || tmux neww -t 2"
bind -n F3 run-shell "tmux lsw | grep -q '^3:' && tmux selectw -t 3 || tmux neww -t 3"
bind -n F4 run-shell "tmux lsw | grep -q '^4:' && tmux selectw -t 4 || tmux neww -t 4"
bind -n F5 run-shell "tmux lsw | grep -q '^5:' && tmux selectw -t 5 || tmux neww -t 5"
bind -n F6 run-shell "tmux lsw | grep -q '^6:' && tmux selectw -t 6 || tmux neww -t 6"
bind -n F7 run-shell "tmux lsw | grep -q '^7:' && tmux selectw -t 7 || tmux neww -t 7"
bind -n F8 run-shell "tmux lsw | grep -q '^8:' && tmux selectw -t 8 || tmux neww -t 8"
bind -n F9 run-shell "tmux lsw | grep -q '^9:' && tmux selectw -t 9 || tmux neww -t 9"
bind -n F10 run-shell "tmux lsw | grep -q '^10:' && tmux selectw -t 10 || tmux neww -t 10"