-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
98 lines (72 loc) · 3.04 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
91
92
93
94
95
96
97
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",alacritty:RGB"
set-option -g prefix M-q
setw -g mode-keys vi
set -g mouse on
setw -g xterm-keys on
set -s escape-time 10
set -sg repeat-time 600
set -s focus-events on
set -q -g status-utf8 on
setw -q -g utf8 on
set -g history-limit 5000
# Edit tmux configuration
bind e new-window -n "~/.tmux.conf" "nvim ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\""
# Reload configuration
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# Pane border
set-option -g pane-border-style fg=colour235 #fg=base02
set-option -g pane-active-border-style fg=colour240 #fg=base01
# message text
set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange
# Status bar
TMUX_DARK_COLOUR=colour237
TMUX_LIGHT_COLOUR=colour226
set -g status-interval 1
set -g status-style bg=$TMUX_DARK_COLOUR,fg=$TMUX_LIGHT_COLOUR
set -g status-justify left
#set -g status-left-length 120
#set -g status-left '#[bg=#{TMUX_LIGHT_COLOUR},fg=#{TMUX_DARK_COLOUR},bold] #(whoami)@#H #[default] '
#set -g window-status-format '#I:#W'
#set -g window-status-current-format '#[fg=green,bold]#I:#W'
#set -g window-status-separator '>'
#set -g status-right-length 240
#set -g status-right ' #[default]#[bg=#{TMUX_LIGHT_COLOUR},fg=#{TMUX_DARK_COLOUR}] %H:%M %F [%a] '
# Pane splitting
bind M-d split-window -v
bind M-r split-window -h
bind M-c split-window -fh -c "#{pane_current_path}" "clj -M:nrepl"
unbind d
# Pane traversal using HJKL
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Auto window rename
set-window-option -g automatic-rename
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# TokyoNight colors for Tmux
set -g mode-style "fg=#7aa2f7,bg=#3b4261"
set -g message-style "fg=#7aa2f7,bg=#3b4261"
set -g message-command-style "fg=#7aa2f7,bg=#3b4261"
set -g pane-border-style "fg=#3b4261"
set -g pane-active-border-style "fg=#7aa2f7"
set -g status "on"
set -g status-justify "left"
set -g status-style "fg=#7aa2f7,bg=#16161e"
set -g status-left-length "100"
set -g status-right-length "100"
set -g status-left-style NONE
set -g status-right-style NONE
set -g status-left "#[fg=#15161e,bg=#7aa2f7,bold] #(whoami)@#H #[fg=#7aa2f7,bg=#16161e,nobold,nounderscore,noitalics]"
set -g status-right ''
setw -g window-status-activity-style "underscore,fg=#a9b1d6,bg=#16161e"
setw -g window-status-separator ""
setw -g window-status-style "NONE,fg=#a9b1d6,bg=#16161e"
setw -g window-status-format "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=#16161e,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261,bold] #I #W #F #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]"
# tmux-plugins/tmux-prefix-highlight support
set -g @prefix_highlight_output_prefix "#[fg=#e0af68]#[bg=#16161e]#[fg=#16161e]#[bg=#e0af68]"
set -g @prefix_highlight_output_suffix ""