-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
71 lines (49 loc) · 2 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
# fix "not a terminal" error on startup
set -g default-terminal "tmux-256color"
set -sag terminal-features ",*:RGB"
set -sag terminal-features ",*:usstyle"
# reload
bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# scroll with mouse
set -g mouse on
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# session restore
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-save-interval '15'
## catppuccin
set -g @catppuccin_flavor "frappe"
set -g @catppuccin_status_background "none"
set -g @catppuccin_pane_status_enabled "off"
set -g @catppuccin_pane_border_status "off"
run ~/.config/tmux/plugins/catppuccin/catppuccin.tmux
### status
set -g status-left " "
set -g status-right ""
#### application
set -ga status-right "#[fg=#{@thm_maroon}] #{pane_current_command}"
set -ga status-right "#[bg=default,fg=#{@thm_overlay_0},none] · "
#### dir
set -ga status-right "#[fg=#{@thm_blue}] #{=/24/...:#{b:pane_current_path}}"
set -ga status-right "#[bg=default,fg=#{@thm_overlay_0},none] · "
#### continuum
set -ga status-right "#[fg=#{@thm_teal}] #{continuum_status}"
set -ga status-right "#[bg=default,fg=#{@thm_overlay_0},none] · "
#### session
set -ga status-right "#[fg=#{@thm_green}] #{?client_prefix,#[bg=#{@thm_crust}]#[reverse]#[bold]#S,#S}"
set -ga status-right " "
### windows
set -wg automatic-rename on
set -g automatic-rename-format "w"
set -g window-status-format "#I#{?#{!=:#{window_name},w}, #W,}"
set -g window-status-style "fg=#{@thm_subtext_0}"
set -g window-status-last-style "fg=#{@thm_subtext_0}"
set -g window-status-activity-style "fg=#{@thm_red},bold"
set -g window-status-bell-style "fg=#{@thm_red},bold"
set -gF window-status-separator "#[fg=#{@thm_overlay_0}] · "
set -g window-status-current-format "#I#{?#{!=:#{window_name},w}, #W,}"
set -g window-status-current-style "fg=#{@thm_teal},bold"
# init tpm - keep at the bottom
run ~/.config/tmux/plugins/tpm/tpm