-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
executable file
·90 lines (70 loc) · 3.06 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
set -g prefix C-h
unbind C-j
unbind C-k
unbind C-b
bind C-h send-prefix
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# tmux display in 256 colours
# set -g default-terminal "xterm-256color-italic"
# set -g default-terminal "xterm-256color"
# Undercurl
set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
set -as terminal-features ',xterm-256color:clipboard'
# set -as terminal-features ',xterm-256color-italic:clipboard'
# set -s set-clipboard external
set -s set-clipboard on
set -g default-shell $SHELL
set-option -g history-limit 5000
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r H resize-pane -L 1
bind -r J resize-pane -D 1
bind -r K resize-pane -U 1
bind -r L resize-pane -R 1
setw -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
set -g window-status-separator ''
setw -g window-status-format '#{?window_activity_flag, #[fg=white bg=terminal]#[blink],#[fg=white bg=terminal]}#{?window_bell_flag,#[fg=white bg=terminal]#[blink],#[fg=white bg=terminal]} #I-#W #[bg=terminal, fg=terminal] '
set -g window-status-activity-style 'bg=terminal,fg=white,blink'
set -g window-status-bell-style 'bg=terminal,fg=white,blink'
setw -g window-status-current-format '#[bg=magenta, fg=brightblack]#[bg=magenta, fg=#eff1f5] #I-#W #[bg=black, fg=white]#[bg=terminal, fg=magenta]'
set -g monitor-activity on
set -g visual-activity on
set -g status-style fg=black
set -g status-style bg=terminal
set -g status-left-length 90
set -g status-right-length 190
set -g status-left '#[bg=blue, fg=#eff1f5, italics] #S #[bg=terminal, fg=blue, noitalics]#[bg=terminal, fg=terminal] '
set -g status-right "#[fg=brightmagenta, italics] #(date +\"%a %b %d %I:%M%p\") #[fg=blue]#(~/Code/dotfiles/moonphase.sh) #[fg=green]#(~/Code/dotfiles/simplebat.sh) #[fg=cyan]#(~/Code/dotfiles/simplewifi.sh)"
set -g status-justify left
# pane border colors
set -g pane-border-indicators both
set -g pane-active-border-style bg=terminal,fg=green
set -g pane-border-style bg=terminal,fg=magenta
set-window-option -g window-active-style bg=terminal
set-window-option -g window-style bg=black
setw -g mode-keys vi
unbind [
unbind i
bind i copy-mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
# bind-key -T copy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi 'y' send -X copy-pipe
set -g allow-passthrough all
# automatially renumber windows
set-option -g renumber-windows on