-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdot_tmux.conf
More file actions
105 lines (93 loc) · 2.85 KB
/
dot_tmux.conf
File metadata and controls
105 lines (93 loc) · 2.85 KB
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
98
99
100
101
102
103
104
105
# -----------------------
# Basic config
# -----------------------
# set -g default-shell /usr/bin/zsh
set -g default-terminal screen-256color
set -sg escape-time 0
set -g history-limit 50000
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
set -g prefix C-a
setw -g mouse on
# -----------------------
# Key Bindings
# -----------------------
unbind C-b
bind C-a send-prefix
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 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# -----------------------
# Status Bar
# -----------------------
set -g status-position top
set -g status-interval 1
set -g status-justify absolute-centre
set -g status-left-length 100
set -g status-right-length 120
set -g focus-events on
# -----------------------
# Bell Config (for Claude Code notifications)
# -----------------------
# activity
set -g monitor-activity off
# bell
set -g monitor-bell on
set -g visual-bell both
set -g bell-action other
set -g window-status-bell-style 'reverse'
set -g monitor-silence 180
set -g silence-action other
set -g visual-silence on
# -----------------------
# Pane Style
# -----------------------
set -sa terminal-overrides ',xterm-256color:RGB'
set -g pane-border-style 'fg=colour238'
set -g pane-active-border-style 'fg=colour117,bold'
# -----------------------
# Copy Mode
# -----------------------
setw -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
bind -T copy-mode C-u send-keys -X page-up
bind -T copy-mode C-d send-keys -X page-down
# -----------------------
# Catppuccin Theme
# -----------------------
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_status_modules_right "directory session date_time"
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M"
# -----------------------
# Plugin Config
# -----------------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'catppuccin/tmux'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'
# -----------------------
# Pane Style (after TPM to override Catppuccin)
# -----------------------
set -g window-style 'bg=#24273a'
set -g window-active-style 'bg=#1e1e2e'
set -g pane-border-style 'fg=#6c7086'
set -g pane-active-border-style 'fg=#89b4fa,bold'