-
Notifications
You must be signed in to change notification settings - Fork 1
/
_tmux.conf
75 lines (67 loc) · 1.96 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
# vim: set ft=config ts=4 sw=0 tw=0 et:
set -g set-titles on
set -g set-titles-string '#W #T'
set -g default-terminal "screen-256color"
set -g visual-bell off
set -g set-clipboard on
# https://superuser.com/a/1195372/88312
set -g escape-time 50
# turn off mouse mode
set -g mouse off
set -g visual-activity off
# visual monitor activity
set -g monitor-activity on
set -g clock-mode-style 24
# renaming
set -g automatic-rename on
# vi mode
set -g mode-keys vi
# bigger history
set -g history-limit 50000
set -g repeat-time 500
set -g focus-events on
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# terminal colors
set -s terminal-overrides ""
set -sa terminal-overrides ",screen-256color:RGB"
set -sa terminal-overrides ",alacritty:RGB"
set -sa terminal-overrides ",Apple_Terminal:RGB"
set -sa terminal-overrides ",WezTerm:RGB"
# set status bar
set -g status-position top
set -g status-left "#H"
set -g status-right "#[fg=darkblue]%d %b %R#[default]" # day month time
set -g status-justify centre
set -g status-bg white
set -g status-fg black
# setw -g window-status-current-style "fd=#5f73dd bg=#222222"
# setw -g window-status-current-format "#I#[fg=#010101]:#[fg=00fffa]"
# setw -g window-status-style "fg=#5f73dd bg=#090909"
# -------------------------------------------------
# keymaps
# -------------------------------------------------
set -g prefix 'C-\'
unbind C-b
bind 'C-\' send-prefix
bind 'C-\' last-window
# new window
bind c new-window -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
# select window
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r C-t break-pane
# select pane
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# resize pane
bind -r < resize-pane -L 10
bind -r > resize-pane -R 10
bind -r + resize-pane -D 10
bind -r - resize-pane -U 10
bind r source-file ~/.tmux.conf \; display "Reloaded!"