-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
73 lines (63 loc) · 2.24 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
################
# Key Bindings #
################
unbind C-b
set -g prefix C-x
bind C-x send-prefix
# bind 3 split-window -h -c '#{pane_current_path}'
# bind 2 split-window -v -c '#{pane_current_path}'
bind k kill-session
bind-key -n C-t new-window -c '#{pane_current_path}' -n ''
bind-key -n C-Tab next-window
# bind-key -n C-w kill-pane
bind-key -n M-n split-window
# bind-key -n M-m split-window -h \; select-layout main-horizontal
bind-key C-s \
if-shell "(($(tmux display -p '#{session_many_attached}') > 0))" \
choose-session \
"run-shell \"tmux choose-session \\\"switch-client -t '%%'; kill-session -t '$(tmux display -p '#S')'\\\"\""
unbind r
bind r source-file ~/.tmux.conf
###########
# Options #
###########
set -s copy-command 'wl-copy --primary'
if-shell "[ -x /usr/bin/fish ]" \
'set-option -g default-shell "/usr/bin/fish"'
set -g default-terminal "screen-256color"
set -g pane-border-indicators off
# set -g pane-border-indicators arrows
set -g pane-border-style "fg=color7 dim"
set -g pane-active-border-style "#{pane-border-style}"
set -g pane-border-lines simple
set -g pane-border-status off
set -g mouse on
set -g history-limit 100000
#########
# Hooks #
#########
set-hook -g after-split-window 'selectp -T "\~" ; selectl main-vertical'
set-hook -g pane-exited "selectl main-vertical"
set-hook -g after-new-window 'selectp -T "\~"'
set-hook -g after-new-session 'selectp -T "\~"'
##############
# Status Bar #
##############
setw -g status-style fg=gray,bg=default
setw -g status-left ""
# setw -g status-right "[#S]"
setw -g status-right ""
setw -g status-justify centre
setw -g status-position top
setw -g status-right-style "fg=colour11"
setw -g window-status-current-style 'bg=colour9 fg=default bold'
setw -g window-status-current-format ' #[fg=black none]#{=20:pane_title} '
setw -g window-status-style 'bg=colour8 fg=default dim'
setw -g window-status-format ' #[fg=default none]#{=16:pane_title} '
setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold'
setw -g message-style 'bg=default fg=colour3'
# set-option -g status-interval 1
set-option -g automatic-rename off
# set-option -g automatic-rename-format \
# '#(echo #{pane_current_path}|sed "s/^${HOME//\//\\\/}/~/")'
# set -g window-status-current-style bg='#AAAAAA',fg=black