-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
103 lines (81 loc) · 2.59 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
98
99
100
101
102
103
# Set the prefix from Ctrl-b to Ctrl-a
set -g prefix C-a
unbind C-b
# Use vi-style key-bindings
setw -g mode-keys vi
# Enable sending C-a to other apps
bind C-a send-prefix
# Set the delay between prefix and command
set -sg escape-time 10
# Set repeat time for repeating keystrokes
set -g repeat-time 750
# Set base index of windows and panes to 1 rather than 0
set -g base-index 1
set -g pane-base-index 1
# Reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split panes
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
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
# Disable mouse mode
set -g mouse off
# Rose Pine colors
thm_base="#191724";
thm_surface="#1f1d2e";
thm_overlay="#26233a";
thm_muted="#6e6a86";
thm_subtle="#908caa";
thm_text="#e0def4";
thm_love="#eb6f92";
thm_gold="#f6c177";
thm_rose="#ebbcba";
thm_pine="#31748f";
thm_foam="#9ccfd8";
thm_iris="#c4a7e7";
thm_hl_low="#21202e";
thm_hl_med="#403d52";
thm_hl_high="#524f67";
# Set colors
## Status bar
set -g status-style "fg=$thm_pine,bg=$thm_overlay"
## Windows
setw -g window-style "fg=$thm_muted,bg=$thm_surface"
setw -g window-active-style "fg=$thm_text,bg=$thm_base"
setw -g window-status-style "fg=$thm_iris,nobold,bg=$thm_surface"
setw -g window-status-activity-style "fg=$thm_base,nobold,bg=$thm_love"
setw -g window-status-current-style "fg=$thm_surface,bold,bg=$thm_gold"
## Messages
set -g message-style "fg=$thm_muted,bg=$thm_base"
## Pane Style
set -g pane-border-style "fg=$thm_hl_high"
set -g pane-active-border-style "fg=$thm_gold"
set -g display-panes-active-colour "${thm_text}"
set -g display-panes-colour "${thm_gold}"
# Set status line
set -g status-left-length 40
set -g status-left "#[fg=$thm_foam]#S#[default] #[fg=$thm_gold]#I #[fg=$thm_iris]#P#[default]"
set -g status-justify centre
set -g status-right-length 40
set -g status-right "#{battery_status_fg}#{battery_icon} #{battery_percentage}#[default] | #[fg=$thm_rose,bg=default]%d %b %R #[default]"
# turn on focus events
set -g focus-events on
# acivity alerts
setw -g monitor-activity on
set -g visual-activity on
# Load macOS config if needed
if-shell 'test "$(uname -s)" = Darwin' 'source-file ~/.tmux.macos.conf'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'