-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
84 lines (64 loc) · 2.45 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
# Flow colorscheme | Tmux
# https://github.com/0xstepit/flow.nvim
## Statusbar style
set -g status-position top
set -g status-right-length "100"
set -g status-left-length "100"
set -g status-style bg=#141a1f,fg=#3d4f5c
set -g window-status-style fg=#3d4f5c,bg=#141a1f
setw -g window-status-separator " "
set -g window-status-current-style fg=colour198
set -g window-status-format "(#I) #W"
set -g window-status-current-format "(#I) #W"
set -g status-left "#[fg=#0d0d0d,bg=#8cb9d9] #S #[bg=#3d4f5c,fg=#8cb9d9] #h #[bg=#141a1f] "
set -g status-right "#[bg=#3d4f5c,fg=#8cb9d9] %H:%M #[fg=#0d0d0d,bg=#8cb9d9] %A %d. %b %Y "
set -g message-command-style fg=#ff007b
set -g message-style "fg=#ff007b, bg=#141a1f" # color used in the message popup.
set -g mode-style "fg=#ff007b"
## Borders
set -g pane-border-style "fg=#3d4f5c"
set -g pane-active-border-style "fg=#ac8cd9"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
unbind-key -n C-Left
unbind-key -n C-Right
# use hjkl to navigate panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Set scrollback buffer to 10000
set -g history-limit 20000
# reload tmux config with ctrl + a + r
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded tmux config.'
# No delay for escape key press
set -sg escape-time 50
set-option -g focus-events on
# tmux-mem-cpu-load
# set-option -g status-interval 2
# set-option -g status-right-length 140
# set-option -g status-right-style default
# set-option -g status-right "#(tmux-mem-cpu-load --interval 2 --graph-lines 10 --mem-mode 0 --cpu-mode 0 --averages-count 0)"
# set-option -g status-right-length 60
# set up vim key bindings for copy-paste ctrl + a, [ , v (to copy), enter (to add selection to system buffer), ctrl + a, P (to paste)
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# Allow copy to system buffer
#bind -t vi-copy y copy-pipe "xclip -selection c"
#bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# remove green status bar at the bottom
set -g status off
# use vi keys
set -g mode-keys vi
# Improve colors
set -g default-terminal 'tmux-256color'
set -as terminal-overrides ",alacritty*:Tc"